dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit 8a19b21e6f5871354be8c1f593ea9fb651a977a4
parent a13d9546ccab92e55120d7ffca8ce8de00463376
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sat, 16 Apr 2022 22:33:07 +0530

Add configure for lf

Extern configured for lynx!

Remap Wq as wq in vim

Add tmux + ncmpcpp configuration (visualization + status-right)

Add some useful git aliases

Diffstat:
M.config/.gitignore | 1+
M.config/git/config | 7+++++--
M.config/lynx/lynx.cfg | 8++++++++
M.config/tmux/tmux.conf | 3+++
M.config/vim/keybindings/keybindings.vim | 8++++++++
5 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/.config/.gitignore b/.config/.gitignore @@ -11,6 +11,7 @@ !git/ !git/config !i3 +!lf !lynx/ !lynx/lynx.cfg !lynx/lynx.lss diff --git a/.config/git/config b/.config/git/config @@ -3,16 +3,19 @@ b = branch ba = branch --all c = commit - cm = commit --message ca = commit --amend + cl = clone + cm = commit --message co = checkout con = config d = diff ds = diff --staged + l = log ld = log --pretty=format:"%h %ad %s" --date=short --all lg = log --graph --oneline --decorate --all p = pull - r = reset + pu = push + rv = remote --verbose st = status suir = submodule update --init --recursive wt = worktree diff --git a/.config/lynx/lynx.cfg b/.config/lynx/lynx.cfg @@ -25,4 +25,12 @@ MESSAGESECS:0.5 ALERTSECS:3 NO_PAUSE:TRUE +USE_EXTERNALS:TRUE DEFAULT_USER_MODE:ADVANCED +EXTERNAL:http:open -u %s &:TRUE +KEYMAP:o:ECGOTO +KEYMAP:O:GOTO +KEYMAP:g:HOME +KEYMAP:G:END + +DOWNLOADER:wget:wget %s:TRUE diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf @@ -40,6 +40,7 @@ bind P paste-buffer # Themes set -g status-bg black set -g status-fg white +set -g status-right "#(mpc current)" set -g window-status-current-style "bg=black,fg=red" set -g pane-active-border-style "fg=red" @@ -63,3 +64,5 @@ bind-key -T copy-mode-vi 'C-k' select-pane -U bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l bind R source-file ~/.config/tmux/tmux.conf +bind N display-popup -E "ncmpcpp --quiet --screen visualizer" + diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim @@ -8,6 +8,14 @@ nnoremap <leader>co :copen<cr> nnoremap <leader>g :grep nnoremap Y y$ +fun! SetupCommandAlias(from, to) + exec 'cnoreabbrev <expr> '.a:from + \ .' ((getcmdtype() is# ":" && getcmdline() is# "'.a:from.'")' + \ .'? ("'.a:to.'") : ("'.a:from.'"))' +endfun +call SetupCommandAlias("W","w") +call SetupCommandAlias("Wq","wq") + function! ToggleList() if &list == "nolist" set list