feat: switch to kitty
This commit is contained in:
@@ -9,21 +9,12 @@ alias yoink="curl"
|
||||
|
||||
alias pls='sudo -E env "PATH=$PATH"'
|
||||
|
||||
alias zshi="cd ~/.dotfiles && vim configs/init.lua && cd -"
|
||||
alias zshc="cd ~/.dotfiles && vim configs/.zshrc && cd -"
|
||||
alias zshu="source ~/.zshrc"
|
||||
|
||||
alias online="ping 1.1.1.1"
|
||||
|
||||
alias vim="nvim"
|
||||
alias v="nvim"
|
||||
|
||||
alias gs="git status"
|
||||
alias gaa="git add ."
|
||||
alias gpm="git push origin main"
|
||||
alias gcm="git commit -m "
|
||||
alias czi="commitizen init cz-conventional-changelog --yarn --dev --exact"
|
||||
alias cz="git-cz"
|
||||
|
||||
alias D="run dev"
|
||||
alias B="run build"
|
||||
|
@@ -5,8 +5,9 @@ source $(dirname "$0")/functions/wp.zsh;
|
||||
source $(dirname "$0")/functions/fp.zsh;
|
||||
source $(dirname "$0")/functions/rn.zsh;
|
||||
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;
|
||||
source $(dirname "$0")/functions/conf.zsh;
|
||||
source $(dirname "$0")/functions/note.zsh;
|
||||
|
27
configs/zsh/functions/conf.zsh
Normal file
27
configs/zsh/functions/conf.zsh
Normal file
@@ -0,0 +1,27 @@
|
||||
function conf(){
|
||||
|
||||
if [ "$1" = "u" ]; then
|
||||
source ~/.zshrc
|
||||
else
|
||||
cd ~/.dotfiles/
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
cd configs
|
||||
cd $1
|
||||
fi
|
||||
|
||||
if [[ -f "init.lua" ]]; then
|
||||
nvim init.lua
|
||||
elif [[ -f ".zshrc" ]]; then
|
||||
nvim .zshrc
|
||||
source ~/.zshrc
|
||||
elif [[ -f "config" ]]; then
|
||||
nvim config
|
||||
else
|
||||
nvim .
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
function mke(){
|
||||
mkdir -p $1
|
||||
cd $1
|
||||
}
|
15
configs/zsh/functions/note.zsh
Normal file
15
configs/zsh/functions/note.zsh
Normal file
@@ -0,0 +1,15 @@
|
||||
function note(){
|
||||
cd ~/Notes
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
cd $1
|
||||
fi
|
||||
|
||||
if [[ -f "index.md" ]]; then
|
||||
nvim index.md
|
||||
else
|
||||
nvim .
|
||||
fi
|
||||
}
|
||||
|
||||
compctl -/ -W ~/Notes/$@ note
|
@@ -1,11 +1,7 @@
|
||||
function run(){
|
||||
HAS_MAKE="$(ls | grep Makefile)"
|
||||
HAS_PACKAGE="$(ls | grep package.json)"
|
||||
|
||||
if [ "$HAS_PACKAGE" != "" ]; then
|
||||
if [[ -f "package.json" ]]; then
|
||||
pnpm $1
|
||||
elif [ "$HAS_MAKE" != "" ]; then
|
||||
elif [[ -f "Makefile" ]]; then
|
||||
make $1
|
||||
fi
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user