feat: switch to kitty

This commit is contained in:
2022-03-14 19:21:46 +01:00
parent 2cae0ba5f5
commit fe391566e1
25 changed files with 2049 additions and 147 deletions

View File

@@ -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"

View File

@@ -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;

View 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
}

View File

@@ -1,4 +0,0 @@
function mke(){
mkdir -p $1
cd $1
}

View 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

View File

@@ -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
}