diff options
| author | Cabergs Charles <cacharle@w-r4-p5.s19.be> | 2019-10-10 10:17:20 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@w-r4-p5.s19.be> | 2019-10-10 10:17:20 +0200 |
| commit | c9600030d38442c92ead185fcd8307955c156ec3 (patch) | |
| tree | 408e9ee3d6af7e2a2aff777e78da156ca6d5ae1e | |
| parent | fe28ebe81f56832c832e5ca144b429bc49394cf3 (diff) | |
| download | dotfiles-c9600030d38442c92ead185fcd8307955c156ec3.tar.gz dotfiles-c9600030d38442c92ead185fcd8307955c156ec3.tar.bz2 dotfiles-c9600030d38442c92ead185fcd8307955c156ec3.zip | |
Changed tab stuff
| -rw-r--r-- | .vimrc | 11 | ||||
| -rw-r--r-- | .zshrc | 27 |
2 files changed, 30 insertions, 8 deletions
@@ -36,9 +36,9 @@ nnoremap zk <C-W>+ " set expandtab " set tabstop=4 " set shiftwidth=4 -set smarttab -set autoindent -set smartindent +" 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 @@ -47,6 +56,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" @@ -60,6 +71,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" @@ -74,7 +95,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" |
