logo

dotfiles

My dotfiles, one branch per machine, rebased on base
commit: 94f3cc56c79dbd9fc27cc5579369f01c0f7122b7
parent 758a0efb53ccdbe3d692dfe2e6953337f72f5c49
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 10 Sep 2020 10:46:38 +0200

.common.sh: git-sel: Use select statement instead of dmenu

Diffstat:

M.common.sh3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.common.sh b/.common.sh @@ -4,7 +4,8 @@ alias bc="bc ~/Sources/git/hacktivis.me/git/blog/notes/bc.txt" alias fuck='TF_ALIAS=fuck eval $(thefuck $(fc -ln -1))' alias fuu='su -c "$(fc -ln -1)"' alias git-st="git status --short --branch" -alias git-sel='git checkout $(git branch --format "%(refname:lstrip=2)" | dmenu -i -l 10)' +#alias git-sel='git checkout $(git branch --format "%(refname:lstrip=2)" | dmenu -i -l 10)' +alias git-sel='select branch in $(git branch --format "%(refname:lstrip=2)"); do git checkout $branch; break; done' alias git-story="git log --graph --abbrev-commit --decorate --format=format:'%C(cyan)%h%C(reset) %C(green)(%ad)%C(reset) %G?: %s %C(red)- %an %C(reset)%C(yellow)%d%C(reset)'" alias j='jobs -l' alias la='ls -ahF'