Add shell alias to set wezterm variables

This commit is contained in:
Talia 2024-02-28 23:21:03 +01:00
parent ff41ab8db3
commit ea45dfea50

View file

@ -20,6 +20,15 @@ alias setclip='xclip -selection c'
alias tmux='tmux -2' alias tmux='tmux -2'
alias w='watch -t -d -n 1' alias w='watch -t -d -n 1'
alias wmu='wake-me-up' alias wmu='wake-me-up'
if [ "$TERM_PROGRAM" = "WezTerm" ]
then wezvar() {
name="$1"; shift
value="$*"
printf "\033]1337;SetUserVar=%s=%s\007" "$name" $(echo -n "$value" | base64)
}
fi
pp() { pp() {
cd $(find-git-project $HOME/workspace "$@") cd $(find-git-project $HOME/workspace "$@")
} }