update
This commit is contained in:
parent
3afa9900ce
commit
7aa43dbb76
5 changed files with 67 additions and 20 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
# Package manager locks
|
# Package manager locks
|
||||||
*.lock
|
*.lock
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|
||||||
# PHP Stuff
|
# PHP Stuff
|
||||||
vendor
|
vendor
|
||||||
|
|
|
||||||
|
|
@ -68,5 +68,5 @@ TMUX_FZF_LAUNCH_KEY="w"
|
||||||
TMUX_FZF_OPTIONS="-p -w 80% -h 60% -m"
|
TMUX_FZF_OPTIONS="-p -w 80% -h 60% -m"
|
||||||
|
|
||||||
# Tmux Managment
|
# Tmux Managment
|
||||||
bind-key "F" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
bind-key "f" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
||||||
bind-key "f" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/window.sh switch"
|
bind-key "F" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/window.sh switch"
|
||||||
|
|
|
||||||
47
config/zsh/aliases/pnpm.zsh
Normal file
47
config/zsh/aliases/pnpm.zsh
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
alias p='pnpm'
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
alias pa='pnpm add'
|
||||||
|
alias pad='pnpm add --save-dev'
|
||||||
|
alias pap='pnpm add --save-peer'
|
||||||
|
alias prm='pnpm remove'
|
||||||
|
alias pin='pnpm install'
|
||||||
|
alias pls='pnpm list'
|
||||||
|
alias pu='pnpm update'
|
||||||
|
alias puil='pnpm update --interactive --latest'
|
||||||
|
|
||||||
|
# Global dependencies
|
||||||
|
alias pga='pnpm add --global'
|
||||||
|
alias pgls='pnpm list --global'
|
||||||
|
alias pgrm='pnpm remove --global'
|
||||||
|
alias pgu='pnpm update --global'
|
||||||
|
|
||||||
|
# WorkSpace
|
||||||
|
alias pwa='pnpm add --workspace'
|
||||||
|
alias pwls='pnpm list --workspace'
|
||||||
|
alias pwrm='pnpm remove --workspace'
|
||||||
|
alias pwu='pnpm update --workspace'
|
||||||
|
|
||||||
|
# Run scripts
|
||||||
|
alias prun='pnpm run'
|
||||||
|
alias pd='pnpm run dev'
|
||||||
|
alias pb='pnpm run build'
|
||||||
|
alias psv='pnpm run serve'
|
||||||
|
alias pst='pnpm start'
|
||||||
|
alias pt='pnpm test'
|
||||||
|
alias ptc='pnpm test --coverage'
|
||||||
|
alias pln='pnpm run lint'
|
||||||
|
alias pdocs='pnpm run docs'
|
||||||
|
alias pex='pnpm exec'
|
||||||
|
alias pdx='pnpm dlx'
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
alias pi='pnpm init'
|
||||||
|
alias ppub='pnpm publish'
|
||||||
|
alias pc='pnpm create'
|
||||||
|
|
||||||
|
# Monorepo
|
||||||
|
alias pf='pnpm -r --filter'
|
||||||
|
|
||||||
|
# qwik
|
||||||
|
alias pre='pnpm run preview'
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
omz_install_custom() {
|
omz_install_custom() {
|
||||||
set -e
|
set -e
|
||||||
local type=$1
|
local type=$1
|
||||||
local omz_dir="${ZSH:-$HOME/.local/share/oh-my-zsh}"
|
local omz_dir="${ZSH:-$HOME/.local/share/oh-my-zsh}"
|
||||||
local custom_dir="${ZSH_CUSTOM:-$omz_dir/custom}/${type}s"
|
local custom_dir="${ZSH_CUSTOM:-$omz_dir/custom}/${type}s"
|
||||||
local repos=("${@:2}")
|
local repos=("${@:2}")
|
||||||
|
|
||||||
if [[ ! -d "$omz_dir" ]]; then
|
if [[ ! -d "$omz_dir" ]]; then
|
||||||
echo "${BLU}Installing ${BLD}[Oh My Zsh]${RST} ..."
|
echo "${BLU}Installing ${BLD}[Oh My Zsh]${RST} ..."
|
||||||
git clone https://github.com/ohmyzsh/ohmyzsh.git $omz_dir
|
git clone https://github.com/ohmyzsh/ohmyzsh.git $omz_dir
|
||||||
fi
|
|
||||||
|
|
||||||
for repo in "${repos[@]}"; do
|
|
||||||
local name=${repo##*/}
|
|
||||||
local dir="$custom_dir/$name"
|
|
||||||
if [[ ! -d "$dir" ]]; then
|
|
||||||
echo "${GRN}Installing ${BLD}${YLW}$name${RST} ${BLU}${type}...${RST}"
|
|
||||||
git clone --depth=1 "https://github.com/$repo" "$dir"
|
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
for repo in "${repos[@]}"; do
|
||||||
|
local name=${repo##*/}
|
||||||
|
local dir="$custom_dir/$name"
|
||||||
|
if [[ ! -d "$dir" ]]; then
|
||||||
|
echo "${GRN}Installing ${BLD}${YLW}$name${RST} ${BLU}${type}...${RST}"
|
||||||
|
git clone --depth=1 "https://github.com/$repo" "$dir"
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Usage install_omz_cutom <type> <reponame>
|
# Usage install_omz_cutom <type> <reponame>
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,6 @@ plugins=(
|
||||||
fzf
|
fzf
|
||||||
git
|
git
|
||||||
git-prompt
|
git-prompt
|
||||||
npm
|
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
safe-paste # don't run code when pasting
|
safe-paste # don't run code when pasting
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue