feat: refactor config to use lua modules

This commit is contained in:
2021-08-12 13:12:30 +02:00
parent 1e65796eb8
commit c40c6dbeef
9 changed files with 535 additions and 195 deletions

View File

@ -9,10 +9,10 @@ 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 nano="nvim"
alias vim="nvim"
alias v="nvim"
@ -23,6 +23,9 @@ 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 lt="tree -L 2 --filelimit 150 --dirsfirst"

View File

@ -2,7 +2,6 @@ source $(dirname "$0")/functions/co.zsh;
source $(dirname "$0")/functions/fx.zsh;
source $(dirname "$0")/functions/start.zsh;
source $(dirname "$0")/functions/wp.zsh;
source $(dirname "$0")/functions/y.zsh;
source $(dirname "$0")/functions/fp.zsh;
source $(dirname "$0")/functions/rn.zsh;
source $(dirname "$0")/functions/sum.zsh;

View File

@ -1,21 +0,0 @@
function y(){
word=$(echo "$1" | fold -w 1)
for char in $(echo $word)
do
if [ $char = "i" ]; then
pnpm i -r
elif [ $char = "d" ]; then
pnpm dev
elif [ $char = "b" ]; then
pnpm build
elif [ $char = "a" ]; then
pnpm add
elif [ $char = "u" ]; then
pnpm upgrade
elif [ $char = "t" ]; then
pnpm test
elif [ $char = "c" ]; then
pnpm coverage
fi
done
}