Skip to content

Commit

Permalink
Add mise
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed May 29, 2024
1 parent 5b25a0c commit 78c7954
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,22 @@ if [[ "$OSTYPE" == darwin* ]]; then
lpath+="$BREW_PREFIX/lib/ruby/gems/3.2.0/bin"

# Python
lpath+="$HOME/Library/Python/3.11/bin"
lpath+="$HOME/Library/Python/3.12/bin"

# Java
lpath+="$BREW_PREFIX/opt/openjdk/bin"

# mise
if which mise >/dev/null 2>&1; then
eval "$($BREW_PREFIX/bin/mise activate zsh)"
fi

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/ladislas/Desktop/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/ladislas/Desktop/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/ladislas/Desktop/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/ladislas/Desktop/google-cloud-sdk/completion.zsh.inc'; fi


# Export $PATH
path=($lpath $path)
Expand Down Expand Up @@ -115,11 +130,11 @@ fi
#

# ls, the common ones I use a lot shortened for rapid fire usage
alias l='ls -lFh' #size,show type,human readable
alias la='ls -lAFh' #long list,show almost all,show type,human readable
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
alias ll='ls -l' #long list
alias l='ls -lFh' # size,show type,human readable
alias la='ls -lAFh' # long list,show almost all,show type,human readable
alias lr='ls -tRFh' # sorted by date,recursive,show type,human readable
alias lt='ls -ltFh' # long list,sorted by date,show type,human readable
alias ll='ls -l' # long list
alias ldot='ls -ld .*'
alias lS='ls -1FSsh'
alias lart='ls -1Fcart'
Expand All @@ -130,6 +145,13 @@ function lls {
*2^(8-i));if(k)printf(\"%0o \",k);print}"
}

# Finder
function finder() {
if [[ -n "$1" ]] then
open -R $1
fi
}

# System info, history and help
alias dud='du -d 1 -h'
alias duf='du -sh *'
Expand Down

0 comments on commit 78c7954

Please sign in to comment.