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

@ -25,9 +25,10 @@ alias gcm="git commit -m "
alias czi="commitizen init cz-conventional-changelog --yarn --dev --exact"
alias cz="git-cz"
alias D="pnpm dev"
alias B="pnpm build"
alias T="pnpm test"
alias D="run dev"
alias B="run build"
alias T="run test"
alias P="git push"
alias p="git pull"

View File

@ -8,3 +8,5 @@ source $(dirname "$0")/functions/sum.zsh;
source $(dirname "$0")/functions/mke.zsh;
source $(dirname "$0")/functions/myip.zsh;
source $(dirname "$0")/functions/cht.zsh;
source $(dirname "$0")/functions/dv.zsh;
source $(dirname "$0")/functions/run.zsh;

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
}