add zsh and starship config files
This commit is contained in:
34
utils/dotzshrc
Normal file
34
utils/dotzshrc
Normal 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"
|
||||
29
utils/starship.toml
Normal file
29
utils/starship.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
add_newline = false
|
||||
|
||||
# $git_branch $git_status
|
||||
format = '''
|
||||
$username[@](bright-green)$hostname:$directory\$ '''
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
format = '[$user]($style)'
|
||||
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
trim_at = ''
|
||||
style = 'bold green'
|
||||
format = '[$ssh_symbol$hostname]($style)'
|
||||
|
||||
[directory]
|
||||
truncation_length = 9999
|
||||
style = 'bold blue'
|
||||
format = '[$path]($style)[$read_only]($read_only_style)'
|
||||
truncate_to_repo = false
|
||||
|
||||
[character]
|
||||
success_symbol = '[\$](white)'
|
||||
error_symbol = '[\$](red)'
|
||||
|
||||
# eval "$(starship init bash)"
|
||||
Reference in New Issue
Block a user