Remove guake workaround
This commit is contained in:
parent
b694e9cdf5
commit
b4d22fc49f
8
zshrc
8
zshrc
@ -138,17 +138,13 @@ if [[ `uname` = Linux ]]; then
|
||||
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
|
||||
fi
|
||||
|
||||
# Get the shells parent process name.
|
||||
ppid_name() { echo $(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=) }
|
||||
|
||||
# Enable changing cursor shape based on vi mode
|
||||
if [ "$ITERM_PROFILE" != "" ] && [ "$TMUX" = "" ]; then
|
||||
# iTerm2 cursor shape escape sequences outside tmux
|
||||
cursor_block="\e]50;CursorShape=0\C-G"
|
||||
cursor_line="\e]50;CursorShape=1\C-G"
|
||||
elif [ "$(ppid_name)" != "python2" ]; then
|
||||
# iTerm2 inside tmux or VTE compatible cursor shape escape sequences,
|
||||
# exclude Guake even though it's VTE based it doesn't like these
|
||||
else
|
||||
# iTerm2 inside tmux or VTE compatible cursor shape escape sequences.
|
||||
cursor_block="\e[2 q"
|
||||
cursor_line="\e[6 q"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user