feat: friendly snippets for ultisnips
This commit is contained in:
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
13
configs/zsh/functions/dv.zsh
Normal file
13
configs/zsh/functions/dv.zsh
Normal 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 .
|
||||
}
|
11
configs/zsh/functions/run.zsh
Normal file
11
configs/zsh/functions/run.zsh
Normal 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
|
||||
|
||||
}
|
Reference in New Issue
Block a user