feat: friendly snippets for ultisnips
This commit is contained in:
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