From 900c97b3fa7592a9cc4b018c2883dbdac0caba09 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 30 Aug 2019 18:50:32 +0200 Subject: changed vim commenter due to weird behavior in c files, github alias, various little change in vimrc --- .zshrc | 1 + 1 file changed, 1 insertion(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 26fdd5d..ab2a7b9 100644 --- a/.zshrc +++ b/.zshrc @@ -27,6 +27,7 @@ bindkey -M isearch " " magic-space alias -g G='| grep' alias -g L='| less' alias -g LO='192.168.0.' +alias -g HUB="https://github.com/HappyTramp/" alias rr='rm -r' alias ll="ls -lFh" alias la="ls -a" -- cgit From 35651b9d0ef722ec5ab63aa96bd03b3eede92d51 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 3 Sep 2019 13:05:45 +0200 Subject: vim better incsearch with pluggin, zsh extended glob --- .zshrc | 1 + 1 file changed, 1 insertion(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index ab2a7b9..ffe90cc 100644 --- a/.zshrc +++ b/.zshrc @@ -14,6 +14,7 @@ bindkey -v setopt auto_cd setopt pushd_ignore_dups setopt list_rows_first +set extendedglob # alias expansion bindkey "^ " _expand_alias # ctrl+space to expand -- cgit From c02b5d1c427b4a203eef65e2f05d1e3faa066fbb Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 6 Sep 2019 15:09:46 +0200 Subject: added ghci and gdb config files --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index ffe90cc..a102960 100644 --- a/.zshrc +++ b/.zshrc @@ -14,7 +14,7 @@ bindkey -v setopt auto_cd setopt pushd_ignore_dups setopt list_rows_first -set extendedglob +setopt extendedglob # alias expansion bindkey "^ " _expand_alias # ctrl+space to expand -- cgit From 4df35c81432f4ec94f63b0c86de58aec4259006a Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 21 Sep 2019 21:37:30 +0200 Subject: 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 --- .zshrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index a102960..54925c4 100644 --- a/.zshrc +++ b/.zshrc @@ -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 -- cgit