From f03ea918e8591ba5794e5e1c4b9426138f72ab32 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Mon, 27 Nov 2023 21:15:08 -0600 Subject: Update packages and config files tmux.conf -> bindings for saving and scrolling zsh/p10k -> new layouts and aliases vimrc -> New plugins for tmux and tab bindings new wallpapers --- src/config/files/shell/.p10k.zsh | 4 ++-- src/config/files/shell/.tmux.conf | 11 ++++++++--- src/config/files/shell/.vimrc | 16 ++++++++-------- src/config/files/shell/.zshrc | 2 +- 4 files changed, 19 insertions(+), 14 deletions(-) (limited to 'src/config/files/shell') diff --git a/src/config/files/shell/.p10k.zsh b/src/config/files/shell/.p10k.zsh index aa8ea94..54eea45 100644 --- a/src/config/files/shell/.p10k.zsh +++ b/src/config/files/shell/.p10k.zsh @@ -37,7 +37,7 @@ vcs # git status # =========================[ Line #2 ]========================= -# newline # \n + newline # \n prompt_char # prompt symbol ) @@ -217,7 +217,7 @@ typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,ROOT,REMOTE_SUDO,REMOTE,SUDO}_SUFFIX='] typeset -g POWERLEVEL9K_DIR_FOREGROUND=002 # If directory is too long, shorten some of its segments to the shortest possible unique # prefix. The shortened directory can be tab-completed to the original. - typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique + typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last #tab-completed #truncate_to_unique # Replace removed segment suffixes with this symbol. typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= # Color of the shortened directory segments. diff --git a/src/config/files/shell/.tmux.conf b/src/config/files/shell/.tmux.conf index e278575..2896f30 100644 --- a/src/config/files/shell/.tmux.conf +++ b/src/config/files/shell/.tmux.conf @@ -11,16 +11,16 @@ set-option -g display-panes-active-colour red set-option -g display-panes-colour blue set-option -g display-panes-time 1000 set-option -g display-time 750 -set-option -g history-limit 2000 +set-option -g history-limit 4000 set-option -g key-table root set-option -g lock-after-time 0 set-option -g lock-command "lock -np" set-option -g message-command-style bg=black,fg=yellow set-option -g message-style bg=yellow,fg=black -set-option -g mouse off +set-option -g mouse on set-option -g prefix C-a set-option -g prefix2 None -set-option -g renumber-windows off +set-option -g renumber-windows on set-option -g repeat-time 1000 set-option -g set-titles off set-option -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}" @@ -53,3 +53,8 @@ set-option -g visual-activity off set-option -g visual-bell off set-option -g visual-silence off set-option -g word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~" +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @resurrect-strategy-vim 'session' +set -g @resurrect-strategy-nvim 'session' +run '~/.tmux/plugins/tpm/tpm' + diff --git a/src/config/files/shell/.vimrc b/src/config/files/shell/.vimrc index 658eac5..5a4e376 100644 --- a/src/config/files/shell/.vimrc +++ b/src/config/files/shell/.vimrc @@ -10,14 +10,17 @@ call vundle#begin() set bs=2 set ts=8 -set sw=8 +set tw=80 set t_Co=256 set number set ruler +set shiftwidth=2 smarttab +set expandtab -nnoremap :tabprevious -nnoremap :tabnext + +nnoremap :bp +nnoremap :bn nnoremap :tabfirst nnoremap :tablast nnoremap :tabmove +1 @@ -25,10 +28,6 @@ nnoremap :tabmove -1 map :NERDTreeTabsToggle noremap :Files xnoremap :s/^/\/\/ -nnoremap >> -nnoremap << -xnoremap > -xnoremap < nmap MarkdownPreviewToggle @@ -49,10 +48,11 @@ Plugin 'valloric/youcompleteme' Plugin 'junegunn/fzf' Plugin 'junegunn/fzf.vim' Plugin 'iamcco/markdown-preview.nvim' +Plugin 'tpope/vim-obsession' " All of your Plugins must be added before the following line let g:airline_theme='gruvbox_material' -let g:airline_powerline_fonts = 1 +let g:airline_powerline_fonts = 0 let g:AutoClosePreserveDotReg = 0 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#formatter = 'unique_tail' diff --git a/src/config/files/shell/.zshrc b/src/config/files/shell/.zshrc index ad4b8c0..e809df2 100644 --- a/src/config/files/shell/.zshrc +++ b/src/config/files/shell/.zshrc @@ -126,6 +126,6 @@ export GEM_HOME="$HOME/.gems" export PATH="$HOME/.gems/bin:$PATH" export PATH="$HOME/.local/bin:$PATH" -alias note="/bin/nvim /home/aaditya/Notes/general/$(date +'%d-%m-%y').md" +alias note="/bin/nvim /home/aaditya/Notes/general/$(date +'%Y-%m-%d').md" source <(kubectl completion zsh) alias k=kubectl -- cgit