add zsh and starship config files

This commit is contained in:
2026-07-11 19:07:08 -05:00
parent 61ad1bb003
commit 226ce4eec4
2 changed files with 63 additions and 0 deletions

34
utils/dotzshrc Normal file
View File

@@ -0,0 +1,34 @@
# some handy ls aliases
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# some handy grep aliases
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
export PATH="/usr/local/texlive/2024/bin/x86_64-linux:$PATH"
export PATH="$PATH:/usr/local/go/bin"
export PATH="$PATH:/opt/mssql-tools18/bin"
export PATH="$PATH:/home/evan/go/bin"
alias open="xdg-open"
alias nv="nvim"
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
eval "$(starship init zsh)"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"