commit 4ae27d005a65c3cf26278ebe31cc1205278b229f
parent 04470c52cda848742fa4052834e311b42c465ba4
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Sun, 3 Jul 2022 06:24:37 +0530
Rebase this commit
Diffstat:
4 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
@@ -6,6 +6,7 @@ import:
- ~/.config/alacritty/font.yml
- ~/.config/alacritty/unix.yml
- ~/.config/alacritty/windows.yml
+ - ~/.config/alacritty/mac.yml
live_config_reload: true
diff --git a/.config/git/config b/.config/git/config
@@ -12,7 +12,9 @@
ds = diff --staged
l = log
ld = log --pretty=format:"%h %ad %s" --date=short --all
- lg = log --graph --oneline --decorate --all
+ lg = log --all --grep
+ lgr = log --graph --oneline --decorate --all
+ lss = log --show-signature
p = pull
pu = push
rs = remote --set-url
@@ -28,6 +30,7 @@
[init]
defaultBranch = main
+ templatedir = ~/.config/git/template
[include]
path = config.user
diff --git a/.config/sh/functions b/.config/sh/functions
@@ -1,4 +1,6 @@
# TODO implement [dest_dir] functionality
+# Iterate over each arguments
+# Treat last argument as dest folder? or use -d
extract () {
test $# -lt 1 && { printf "Usage: $0 <archive>\n"; exit 1; }
test -f $1 || { printf "$0: $1: No such file \n"; exit 1; }
diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim
@@ -1,12 +1,13 @@
" General keybindings
nnoremap <leader>t :tabnew<cr>
nnoremap <leader>p :Rg<cr>
-nnoremap <leader>f :find
+nnoremap <leader>f :find *
nnoremap <Leader>l :ls<CR>:b<space>
nmap <leader>F :GFiles<cr>
nnoremap <leader>co :copen<cr>
nnoremap <leader>g :grep
nnoremap <leader>ec :edit ~/.config/vim/vimrc<cr>
+nnoremap <leader>ek :edit ~/.config/vim/keybindings/keybindings.vim<cr>
nnoremap Y y$
fun! SetupCommandAlias(from, to)
@@ -29,13 +30,17 @@ nnoremap <leader>tl :call ToggleList()<CR>
" Buffer Creation
nnoremap <Leader>v :vsplit<enter>
-nnoremap <Leader>s :split<enter>
+nnoremap <Leader>ss :split<enter>
+nnoremap <Leader>sc :source ~/.config/vim/vimrc<enter>
" Quick save and write
nnoremap <leader>wq :wq<cr>
nnoremap <leader>ww :w<cr>
nnoremap <leader>qq :q<cr>
+" Fugitive
+nnoremap <space>gd :Gvdiff<CR>
+
" Run Make
nnoremap <leader>bb :Make<CR>