Compare commits
4 Commits
da44e5f457
...
2c189c87e6
Author | SHA1 | Date | |
---|---|---|---|
2c189c87e6 | |||
a450b3cb45 | |||
2846e7d68e | |||
9da4d8ee71 |
5
zshrc
5
zshrc
@ -55,7 +55,7 @@ bindkey -M vicmd 'gcc' vi-pound-insert
|
|||||||
# TODO: vi-pipe???
|
# TODO: vi-pipe???
|
||||||
|
|
||||||
# Enable accepting autosuggestions
|
# Enable accepting autosuggestions
|
||||||
bindkey '^O' forward-work
|
bindkey '^O' forward-word
|
||||||
bindkey '^P' autosuggest-accept
|
bindkey '^P' autosuggest-accept
|
||||||
|
|
||||||
# Enable substring history search with 'j' and 'k'
|
# Enable substring history search with 'j' and 'k'
|
||||||
@ -77,6 +77,9 @@ autoload -U edit-command-line
|
|||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey -M vicmd '^V' edit-command-line
|
bindkey -M vicmd '^V' edit-command-line
|
||||||
|
|
||||||
|
# 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
|
# Enable changing cursor shape based on vi mode
|
||||||
if [ "$ITERM_PROFILE" != "" ] && [ "$TMUX" = "" ]; then
|
if [ "$ITERM_PROFILE" != "" ] && [ "$TMUX" = "" ]; then
|
||||||
# iTerm2 cursor shape escape sequences outside tmux
|
# iTerm2 cursor shape escape sequences outside tmux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user