Add git-tmux utils

This commit is contained in:
Blallo 2021-11-09 18:42:09 +01:00
parent 65020a1d06
commit 671c009fa8
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

10
.zshrc
View file

@ -68,6 +68,7 @@ fi
if [[ ! -z $TMUX ]]; then
export TERM=tmux-256color
export TMUX_BASE=$(tmux display -p '#{pane_current_path}')
fi
## Editor
@ -267,6 +268,15 @@ urldecode() {
printf '%b' "${url_encoded//%/\\x}"
}
ce() {
if [ "z$TMUX" != "z" ] && [ "z$TMUX_BASE" != "z" ] ; then
cd $()
cd $TMUX_BASE
else
cd
fi
}
## Custom completion
# certo
if which certo > /dev/null; then