diff --git a/zshrc b/zshrc index 0d35e5d..e99bbd0 100644 --- a/zshrc +++ b/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