1
0
Fork 0

Merge branch 'master' of github.com:serverwentdown/env
continuous-integration/drone/push Build is failing Details

main
Ambrose Chua 2020-04-15 16:38:26 +08:00
commit 88e25c1051
2 changed files with 38 additions and 0 deletions

View File

@ -135,6 +135,9 @@ let g:pymode_rope = 1
" plantuml
Plug 'aklt/plantuml-syntax', { 'for': [ 'plantuml' ] }
" ansible
Plug 'pearofducks/ansible-vim', { 'do': './UltiSnips/generate.sh' }
call plug#end()
@ -280,6 +283,10 @@ set shiftwidth=4
"filetype indent on
" TODO: figure out how to properly use the runtime overrides
" width
"set textwidth=80
set colorcolumn=+1
" skel
augroup Skel
autocmd BufNewFile *.sh 0r ~/.config/nvim/skel/skel.sh

31
.local/bin/pev Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh
set -e
PEV="$HOME/pev"
if [[ ! -d "$PEV/bin" ]]; then
if [[ ! -d "$PEV/src" ]]; then
git clone --recursive https://github.com/merces/pev.git "$PEV/src"
fi
if ! ldconfig -p | grep libssl > /dev/null; then
echo "Please install openssl-devel"
exit 1
fi
cd "$PEV/src"
make prefix="$PEV"
make prefix="$PEV" install
fi
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PEV/lib"
PROG="$1"
if [[ -z "$PROG" ]]; then
echo "Usage: $0 PROG [ARGS...]"
echo -n "Programs: "
find "$PEV/bin" -maxdepth 1 -perm -111 -type f -printf "%f "
exit 1
fi
shift
"$PEV/bin/$PROG" "$@"