diff options
| -rw-r--r-- | .vimrc | 17 | ||||
| -rw-r--r-- | .zshrc | 27 |
2 files changed, 33 insertions, 11 deletions
@@ -33,12 +33,12 @@ nnoremap zl <C-W>< nnoremap zj <C-W>- nnoremap zk <C-W>+ " tab to space -set expandtab -set tabstop=4 -set shiftwidth=4 -set smarttab -set autoindent -set smartindent +" set expandtab +" set tabstop=4 +" set shiftwidth=4 +" set smarttab +" set autoindent +" set smartindent " search set ignorecase set smartcase @@ -51,12 +51,13 @@ set scrolloff=2 " 2 line above scroll set showcmd set cursorline " highlight current line set noshowmode " unnecessary with status bar" +set noshowmatch set autoread " reload files when changes happen outside vim " where to place the .swp files -set backupdir=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp -set directory=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp +" set backupdir=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp +" set directory=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp " directory to ignore when searching in file tree (works with ctrlp) set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/* " ctrlp ignore all stuff in the .gitignore @@ -1,13 +1,22 @@ export ZSH="$HOME/.oh-my-zsh" -ZSH_THEME="pure" +ZSH_THEME="" +# ZSH_THEME="robbyrussell" HYPHEN_INSENSITIVE="true" DISABLE_MAGIC_FUNCTIONS=true HIST_STAMPS="dd/mm/yyyy" -plugins=(colorize command-not-found git zsh-syntax-highlighting) +#school stuff +ZSH_DISABLE_COMPFIX=true + +export FPATH="$FPATH:$HOME/.zsh/pure" + +plugins=(colorize git zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh +autoload -U promptinit; promptinit +prompt pure + bindkey -v export KEYTIMEOUT=1 @@ -48,6 +57,8 @@ alias node="nodejs" alias python="python3.7" alias info="info --vi-keys" alias moula="gcc -Wall -Wextra -Werror" +alias norm="norminette" +alias normch="norm *.c *.h" 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" @@ -61,6 +72,16 @@ function chpwd() { fi } +# behavior on enter +# function precmd() { +# echo $0; +# if ["${0}" -eq ""]; then +# ls +# else +# $1 +# fi; +# } + export DOTFILES=$HOME/dotfiles alias zshrc="vim $DOTFILES/.zshrc && source $DOTFILES/.zshrc" alias vimrc="vim $DOTFILES/.vimrc" @@ -75,7 +96,7 @@ 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 +#source /etc/zsh_command_not_found # add /sbin to $PATH export PATH="/sbin:/usr/local/sbin:/usr/sbin:$PATH" |
