.bashrc (1243B)
1 # .bashrc 2 3 # Source global definitions 4 if [ -f /etc/bashrc ]; then 5 . /etc/bashrc 6 fi 7 8 # User specific environment 9 if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] 10 then 11 PATH="$HOME/.local/bin:$HOME/bin:$PATH" 12 fi 13 export PATH 14 15 # User specific aliases and functions 16 if [ -d ~/.bashrc.d ]; then 17 for rc in ~/.bashrc.d/*; do 18 if [ -f "$rc" ]; then 19 . "$rc" 20 fi 21 done 22 fi 23 24 unset rc 25 26 # ENVS 27 export BROWSER="firefox" 28 export EDITOR="nvim" 29 export PAGER="less" 30 export QT_STYLE_OVERIDE="GTK+" 31 32 # colored GCC warnings and errors 33 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 34 35 # prompt 36 PS1="\[\033[38;5;10m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;12m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;1m\]λ\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" 37 38 # aliases 39 alias ..="cd .." 40 alias vim="nvim" 41 alias ls='ls --color=auto' 42 alias cp="cp -v" 43 alias mv="mv -v" 44 alias mkdir="mkdir -v" 45 alias rm="rm -v" 46 alias grep="grep --color" 47 48 # bash-completion 49 if ! shopt -oq posix; then 50 if [ -f /usr/share/bash-completion/bash_completion ]; then 51 . /usr/share/bash-completion/bash_completion 52 elif [ -f /etc/bash_completion ]; then 53 . /etc/bash_completion 54 fi 55 fi