Skip to content

Commit

Permalink
i command for easy install
Browse files Browse the repository at this point in the history
  • Loading branch information
nishigori committed Jun 23, 2024
1 parent bec1d4a commit 9397894
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ alias st='git status'
alias ec="editorconfig-checker" # for nvim-mason-null-ls
alias lazygit="lazygit --use-config-dir ~/.config/lazygit"

function i() { # install-for-current-dir
if [ -f "$PWD/.tool-versions" ]; then (set -x; mise install -y); fi
if [ -f "$PWD/.lefthook.yml" ]; then (set -x; lefthook install); fi
if [ -f "$PWD/bun.lockb" ]; then
(set -x; bun install)
elif [ -f "$PWD/package-lock.json" ]; then
(set -x; npm ci)
fi
}

# ls using https://github.com/Peltoche/lsd
if (( $+commands[lsd] )); then
alias ls='lsd'
Expand Down

0 comments on commit 9397894

Please sign in to comment.