.bashrc (2125B)
1 # 2 # ~/.bashrc 3 # 4 5 # If not running interactively, don't do anything 6 [[ $- != *i* ]] && return 7 8 PS1='[\u@\h \W]\$ ' 9 10 # Source global definitions 11 if [ -f /etc/bashrc ]; then 12 . /etc/bashrc 13 fi 14 15 # Source aliases 16 if [ -f ~/.bash_aliases ]; then 17 . ~/.bash_aliases 18 fi 19 20 # User specific environment 21 case ":$PATH:" in *":$HOME/bin:"*) ;; *) PATH="$HOME/bin:$PATH" ;; esac 22 case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) PATH="$HOME/.local/bin:$PATH" ;; esac 23 case ":$PATH:" in *":$HOME/.opencode/bin:"*) ;; *) PATH="$HOME/.opencode/bin:$PATH" ;; esac 24 export PATH 25 26 # Bash completions 27 if [ -d ~/.bash_completions ]; then 28 for rc in ~/.bash_completions/*; do 29 if [ -f "$rc" ]; then 30 . "$rc" 31 fi 32 done 33 fi 34 35 #Foreground colors, Normal (non-bold) is the default, so the 0; prefix is optional. 36 # 37 #\e[0;30m = Dark Gray 38 #\e[1;30m = Bold Dark Gray 39 #\e[0;31m = Red 40 #\e[1;31m = Bold Red 41 #\e[0;32m = Green 42 #\e[1;32m = Bold Green 43 #\e[0;33m = Yellow 44 #\e[1;33m = Bold Yellow 45 #\e[0;34m = Blue 46 #\e[1;34m = Bold Blue 47 #\e[0;35m = Purple 48 #\e[1;35m = Bold Purple 49 #\e[0;36m = Turquoise 50 #\e[1;36m = Bold Turquoise 51 #\e[0;37m = Light Gray 52 #\e[1;37m = Bold Light Gray 53 # 54 #Background colors: 55 # 56 #\e[40m = Dark Gray 57 #\e[41m = Red 58 #\e[42m = Green 59 #\e[43m = Yellow 60 #\e[44m = Blue 61 #\e[45m = Purple 62 #\e[46m = Turquoise 63 #\e[47m = Light Gray 64 65 #Vi mode 66 #set -o vi 67 68 69 #Exports 70 #export PS1='┌──[\u@\h]─[\w]\n└──╼ \$ ' 71 #export PS1='\[\033[0;32m\]\u\[\033[1;33m\]@\[\033[0;31m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0m\]\$ ' 72 73 export PS1="\[\e[1;32m\]┌──[\[\e[0;36m\]\u\[\e[0;32m\]@\[\e[0;31m\]\h\[\e[1;32m\]]─[\[\e[0;34m\]\w\[\e[1;32m\]]\n\[\e[1;32m\]└──╼ \$\[\e[0;0m\] " 74 #export PS1="\[\e[1;32m\][\[\e[0;36m\]\u\[\e[0;32m\]@\[\e[0;31m\]\h\[\e[1;32m\]]─[\[\e[0;34m\]\w\[\e[1;32m\]]\$\[\e[0;0m\] " 75 76 77 # ~/Scripts/pfetch 78 79 complete -C /usr/bin/vault vault 80 81 eval "$(direnv hook bash)" 82 83 # opencode 84 export OLLAMA_CONTEXT_LENGTH=64000 85 # >>> oh-my-opencode-slim background subagents >>> 86 export OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true 87 export OPENCODE_ENABLE_EXA=1 88 # <<< oh-my-opencode-slim background subagents <<<