diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-09-21 21:37:30 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-09-21 21:37:30 +0200 |
| commit | 4df35c81432f4ec94f63b0c86de58aec4259006a (patch) | |
| tree | 7d4ad1347acedfe8f94b4add6b491d7984d1d1af /.zshrc | |
| parent | c02b5d1c427b4a203eef65e2f05d1e3faa066fbb (diff) | |
| download | dotfiles-4df35c81432f4ec94f63b0c86de58aec4259006a.tar.gz dotfiles-4df35c81432f4ec94f63b0c86de58aec4259006a.tar.bz2 dotfiles-4df35c81432f4ec94f63b0c86de58aec4259006a.zip | |
Dependencies install, zsh syntax highlight
- dependencies Makefile rule to install vim-plug, vim pluggins,
oh-my-zsh, zsh-syntax-highlighting.
- vim keys to move in tab menu completion
- shorter bashrc
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -5,11 +5,11 @@ HYPHEN_INSENSITIVE="true" DISABLE_MAGIC_FUNCTIONS=true HIST_STAMPS="dd/mm/yyyy" -plugins=(colorize command-not-found git) +plugins=(colorize command-not-found git zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh -export KEYTIMEOUT=1 bindkey -v +export KEYTIMEOUT=1 setopt auto_cd setopt pushd_ignore_dups @@ -49,6 +49,7 @@ alias info="info --vi-keys" alias moula="gcc -Wall -Wextra -Werror" alias list-c-includes-paths="echo | gcc -E -Wp,-v -" alias yoump3='youtube-dl --extract-audio --audio-format mp3' +alias adg="sudo apt update && sudo apt upgrade" function chpwd() { file_count=$(ls | wc -w) @@ -65,6 +66,13 @@ alias vimrc="vim $DOTFILES/.vimrc" alias vimplugrc="vim $DOTFILES/.vimrc -c 'vsp $DOTFILES/.pluggins.vim'" alias tmuxrc="vim $DOTFILES/.tmux.conf && tmux source-file $DOTFILES/.tmux.conf" +# vim keys in tab completion menu (https://www.youtube.com/watch?v=eLEo4OQ-cuQ) +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history +bindkey -v '^?' backward-delete-char + # add command-not-found package suggestion source /etc/zsh_command_not_found |
