g-add: add missing with-term script
This commit is contained in:
parent
38f1ce66f7
commit
172310d89c
18
lib/with-term
Executable file
18
lib/with-term
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
if [[ "${0:t}" == "with-term" ]]; then
|
||||||
|
echo "Symlink to g\$progname to start \$progname in a new terminal"
|
||||||
|
echo "See g for launching with tmux"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -e /etc/zsh/zprofile ]]; then
|
||||||
|
. /etc/zsh/zprofile
|
||||||
|
fi
|
||||||
|
if [[ -e $HOME/.zshenv ]]; then
|
||||||
|
. $HOME/.zshenv
|
||||||
|
fi
|
||||||
|
|
||||||
|
prog=${${0:t}[2,-1]}
|
||||||
|
|
||||||
|
exec x-terminal-emulator -t G${prog} -e $prog
|
Loading…
Reference in a new issue