commit 6b6a1b02855f75deb07764bac9ef7c7bdc086c3b
parent 757089a1a743ec71b62da1d15f5a3c6e217ebd12
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Sat, 16 Apr 2022 22:35:46 +0530
Merge pull request #32 from bharatvaj/macos
Add configure for lf
Diffstat:
5 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -10,6 +10,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