Add git-tmux utils
This commit is contained in:
parent
65020a1d06
commit
671c009fa8
1 changed files with 10 additions and 0 deletions
10
.zshrc
10
.zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue