feat: friendly snippets for ultisnips

This commit is contained in:
2022-03-01 23:25:44 +01:00
parent b33502bf54
commit ceded2bb2a
19 changed files with 126 additions and 62 deletions

View File

@ -0,0 +1,13 @@
function dv(){
tmux splitw -v -p20
tmux splitw -h
# tmux splitw -p90
# tmux splitw -dp22 # 20/90
# tmux splitw -h
# tmux selectp -t'{right}'
# tmux splitw -p80
# tmux splitw -p56 # (15+15+15)/80
# tmux splitw -p50
tmux selectp -t'{top-left}'
nvim .
}

View File

@ -0,0 +1,11 @@
function run(){
HAS_MAKE="$(ls | grep Makefile)"
HAS_PACKAGE="$(ls | grep package.json)"
if [ "$HAS_PACKAGE" != "" ]; then
pnpm $1
elif [ "$HAS_MAKE" != "" ]; then
make $1
fi
}