diff --git a/shells/zshrc b/shells/zshrc index 00d2dc5..b7ce812 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -29,6 +29,7 @@ if [ "$(uname)" != "Darwin" ]; then alias matlab='matlab -glnx86' alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"' fi +alias sudo='sudo ' alias con='php app/console' alias srm='srm -dv' alias disphost='export DISPLAY=:0.0' @@ -241,7 +242,9 @@ antigen bundle zsh-users/zsh-syntax-highlighting printf "applying..." antigen apply echo "done" -function zshaddhistory() { +zshaddhistory () { + print -sr -- "${1%%$'\n'}" + fc -p ~/.zsh_history_detail print -sr -- "${1%%$'\n'} ### ${PWD} $(date '+%Y-%m-%d %R')" return 1 } diff --git a/vim/vimrc b/vim/vimrc index 8c59892..aa7f06a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -345,7 +345,7 @@ Plug 'https://github.com/kien/rainbow_parentheses.vim' "Colored parenthesis | https://github.com/kien/rainbow_parentheses.vim Plug 'https://github.com/jiangmiao/auto-pairs' "Automatic pairs | https://github.com/jiangmiao/auto-pairs -"Plug 'https://github.com/Valloric/YouCompleteMe' +Plug 'https://github.com/Valloric/YouCompleteMe' " "Autocompletion | https://github.com/Valloric/YouCompleteMe Plug 'https://github.com/evidens/vim-twig' "Twig highlighting | https://github.com/evidens/vim-twig