Add some useful zellij functions
This commit is contained in:
parent
f906dd126c
commit
527d79e8b1
@ -19,7 +19,16 @@ if (( $+commands[zellij] )); then
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Name tabs after current working directory
|
||||||
if [[ -v ZELLIJ ]]; then
|
if [[ -v ZELLIJ ]]; then
|
||||||
zellij action rename-tab "${PWD##*/}"
|
function zrt {
|
||||||
|
zellij action rename-tab "${PWD##*/}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function znt {
|
||||||
|
zellij action new-tab
|
||||||
|
}
|
||||||
|
|
||||||
|
zrt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user