diff --git a/shells/zshrc b/shells/zshrc index db1db4c..5ff972c 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -20,8 +20,14 @@ if [ -f /etc/zsh_command_not_found ] ; then source /etc/zsh_command_not_found fi export DISABLE_AUTO_TITLE=true -export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$(readlink -e ~/bin)" export EDITOR='vim' +function asroot(){ + # Use temporary file for added security + TEMPFILE=$(tempfile) + xauth extract $TEMPFILE $DISPLAY + sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';" +} alias dumpx="xauth extract /tmp/xauthstuff $DISPLAY" alias impx="xauth merge /tmp/xauthstuff;rm /tmp/xauthstuff" alias sudo='sudo ' diff --git a/vim/vimrc b/vim/vimrc index df47cd4..92b2ac0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -194,8 +194,12 @@ let g:airline#extensions#syntastic#enabled=0 let g:airline#extensions#whitespace#enabled=0 let g:airline#extensions#whitespace#show_message=0 let g:airline#extensions#tmuxline#enabled=1 -let g:formatprg_cpp="astyle" -let g:formatprg_args_expr_cpp=" --mode=c --style=1tbs -xe -k1 -j" +let g:formatdef_my_custom_php = '"astyle --mode=php -xc -A10 -j -s2 -xG -S -K -N -xn -xl -n"' +let g:formatdef_my_custom_cpp = '"astyle --mode=c -xc -A10 -j -s2 -xG -S -K -N -xn -xl -n"' +let g:formatter_cpp = ['formatdef_my_custom_cpp'] +let g:formatter_php = ['formatdef_my_custom_php'] +"let g:formatprg_cpp="astyle" +"let g:formatprg_args_expr_cpp=" --mode=c --style=1tbs -xe -k1 -j" " These flags don't work for some reason " -xn -xc -xl -S "let g:airline#extensions#tabline#enabled=1 diff --git a/vimperator/vimPgray.vimp b/vimperator/vimPgray.vimp index 9b1d7ac..6f60925 100644 --- a/vimperator/vimPgray.vimp +++ b/vimperator/vimPgray.vimp @@ -30,7 +30,8 @@ hi CompTitle color: #ddc; background: #121212; font-weight: bold; hi CompTitle>* color: #aaa; font-weight: bold; border-top: 1px solid gray; border-bottom: 1px solid #BBB; padding: 1px 0.5ex; " " Hints! -" hi Hint color: white; background-color: #800; border-color: ButtonShadow; font-family: Inconsolata; font-size: 12px; border-width: 0px; border-style: solid; padding 0 1px; +hi Hint color: white;background-color: #000000; +" hi Hint color: black; background-color: #F00; border-color: ButtonShadow; font-family: Inconsolata; font-size: 12px; border-width: 0px; border-style: solid; padding 0 1px; " hi Hint::after content: attr(number); " hi HintActive color: black; background: #480; " hi HintElem color: black; background-color: #880;