all repos — dotfiles @ 29de1fd80d29723d89705743364e4a20863f70e8

linux dotfiles

modify f aliases and add new git aliases
Prithu Goswami prithugoswami524@gmail.com
Tue, 08 Dec 2020 09:32:03 +0530
commit

29de1fd80d29723d89705743364e4a20863f70e8

parent

8263eac4ab19879dd3f6fd0fdf16132f40af9d5a

2 files changed, 20 insertions(+), 6 deletions(-)

jump to
M .bashrc.bashrc

@@ -32,14 +32,14 @@ f(){

cd "$(dirname "$(fzf -i --reverse --height=40%)")" } -# find from home +# find from home and don't include *repos* in path fh(){ - cd "$(dirname "$(find ~/* -type f | fzf -i --reverse --height=40% )")" + cd "$(dirname "$(find -H ~/* ! -path '*repos*' -type f | fzf -i --reverse --height=40% )")" } # find from home and edit fhe(){ - vim "$(find ~/* -type f | fzf -i --reverse --height=40% )" + vim "$(find -H ~/* ! -path '*repos*' -type f | fzf -i --reverse --height=40% )" } # find and open

@@ -133,3 +133,5 @@ slugen () {

# generate a slug of alphabets dd if=/dev/urandom status=none bs=1024 count=1 | strings | tr -d '[:space:][:punct:][:digit:]' | cut -c -${1:-4} } +PROMPT_DIRTRIM=2 +
M .gitconfig.gitconfig

@@ -4,6 +4,18 @@ name = Prithu Goswami

signingkey = A17AFDEA2EF9A76AA868285DE2AB251EDB8945E5 [alias] -lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all -lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all -lg = !"git lg1" + lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all + lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all + lg = !"git lg1" + sra = !"git log --format=%H -n 10 --all | xargs git show" + sr = !"git log --format=%H -n 10 | xargs git show" + st = status --short + ci = commit + ca = commit --amend + caa = commit -a --amend + br = branch + co = checkout + df = diff + ; up = pull --rebase +[pull] + rebase = false