mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
adding bound key to start a terminal defined in $TERMINAL, defaulting to xterm
This commit is contained in:
parent
f09d6bd00f
commit
842985c34a
1 changed files with 12 additions and 0 deletions
12
lib/terminal.zsh
Normal file
12
lib/terminal.zsh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
background-terminal() {
|
||||
if [ -z "$TERMINAL" ]; then
|
||||
xterm &
|
||||
else
|
||||
$TERMINAL &
|
||||
fi
|
||||
}
|
||||
zle -N background-terminal
|
||||
bindkey -M vicmd "^N" background-terminal
|
||||
bindkey -M viins "^N" background-terminal
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue