diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2024-07-20 14:34:16 -0400 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2024-07-20 14:34:16 -0400 |
| commit | 78efc3eb493b40ad2f79408a47bb873b5eea9db0 (patch) | |
| tree | 2d63b6cdf93880ead2edba9f5843d3a56e068c32 /.zshrc | |
| parent | 8fe348aaedbea8c141e5f60f936ab278e2db2d08 (diff) | |
sync
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -127,7 +127,18 @@ for key ('k') bindkey -M vicmd ${key} history-substring-search-up for key ('j') bindkey -M vicmd ${key} history-substring-search-down unset key # }}} End configuration added by Zim install -# + +zmodload -F zsh/terminfo +p:terminfo +# Bind ^[[A/^[[B manually so up/down works both before and after zle-line-init +for key ('^[[A' '^P' ${terminfo[kcuu1]}) bindkey ${key} history-substring-search-up +for key ('^[[B' '^N' ${terminfo[kcud1]}) bindkey ${key} history-substring-search-down +for key ('k') bindkey -M vicmd ${key} history-substring-search-up +for key ('j') bindkey -M vicmd ${key} history-substring-search-down +unset key +# }}} End configuration added by Zim install +autoload -U +X bashcompinit && bashcompinit +autoload -U +X compinit && compinit + alias cat=bat alias find=fd alias open=xdg-open @@ -143,6 +154,8 @@ export MANWIDTH=80 source ~/functions/zig.sh source ~/functions/fzf.sh +source ~/functions/ssh.sh +alias ssh=auto_agent_ssh # https://stackoverflow.com/a/14307127/11015039 alias git=safegit |
