dotfiles

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

commit a585a9e3d9dca06c07b131670f3e9fdc58b5b2d5
parent 280134352baba1387599764d85669ea1317e15f7
Author: Bharatvaj <bharatvaj@yahoo.com>
Date:   Sun,  3 Jul 2022 07:35:46 +0530

Add 'rs' and 'rso' git aliases

Rebase this commit

Diffstat:
M.config/alacritty/alacritty.yml | 1+
M.config/git/config | 9++++++---
M.config/sh/functions | 4+++-
M.config/vim/keybindings/keybindings.vim | 13++++++++++---
4 files changed, 20 insertions(+), 7 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,11 +12,13 @@ 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 - rso = remote --set-url origin + rs = remote set-url + rso = remote set-url origin rv = remote --verbose sm = submodule st = status @@ -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,5 +1,7 @@ # TODO implement [dest_dir] functionality -extract () { +# Iterate over each arguments +# Treat last argument as dest folder? or use -d +extract_archive () { test $# -lt 1 && { printf "Usage: $0 <archive>\n"; exit 1; } test -f $1 || { printf "$0: $1: No such file \n"; exit 1; } case $1 in diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim @@ -4,10 +4,13 @@ nnoremap <Leader>l :ls<CR>:b<space> nnoremap <leader><leader> :grep nnoremap <leader>co :copen<cr> nnoremap <leader>ec :edit ~/.config/vim/vimrc<cr> -nnoremap <leader>f :find -nnoremap <leader>g :grep +nnoremap <leader>ek :edit ~/.config/vim/keybindings/keybindings.vim<cr> +nnoremap <leader>f :find * +nnoremap <leader>gg :grep<space> nnoremap <leader>p :Rg<cr> nnoremap <leader>t :tabnew<cr> + +" Behave vim nnoremap Y y$ @@ -34,13 +37,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 function SaveAndBuild()