zsh cleanup

This commit is contained in:
Kulvir Singh
2024-04-28 17:00:43 +05:30
parent 88904c3da3
commit 6c7fab7ddf
6 changed files with 151 additions and 167 deletions

View File

@@ -1,34 +1,3 @@
#export PATH=/opt/homebrew/opt/python@3.9/libexec/bin:$PATH:$HOME/bin
HOST_NAME=MB
export PATH=$PATH:$HOME/bin
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
bldgrn='\e[1;32m' # Bold Green
bldpur='\e[1;35m' # Bold Purple
txtrst='\e[0m' # Text Reset
emojis=("🌐" "🎲" "🌵")
EMOJI=${emojis[$RANDOM % ${#emojis[@]} ]}
print_before_the_prompt () {
dir=$PWD
home=$HOME
dir=${dir/"$HOME"/"~"}
printf "\n $txtred%s: $bldpur%s $txtgrn%s\n$txtrst" "$HOST_NAME" "$dir" "$(vcprompt)"
}
PROMPT_COMMAND=print_before_the_prompt
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
PS1="$EMOJI > "
eval "$(/opt/homebrew/bin/brew shellenv)"
#fortune | cowsay -f tux "ara ara kulvir kun"
# ----------------------
@@ -41,3 +10,26 @@ alias gd='git diff'
alias gpl='git pull'
alias gp='git push'
alias gs='git status'
alias python='python3'
alias nv='nvim'
# Air for GO hot reload
alias air="~/go/bin/air"
# homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# cool to use tools (if ever wanted to)
alias neofetch="macchina"
# neofetch
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# bun completions
[ -s "/Users/kulvir/.bun/_bun" ] && source "/Users/kulvir/.bun/_bun"
eval "$(starship init bash)"