dotfiles/.bashrc

21 lines
522 B
Bash

# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='\[\e[92m\]\u\[\e[0m\]@\[\e[92m\]\h\[\e[0m\]:\[\e[96m\]\w\[\e[0m\] \[\e[91m\]$?\n\[\e[0m\]\$ '
# def flags
alias ls='ls --color=auto'
alias grep='grep --color=auto'
# aliases
alias en='LANG=en_US.UTF-8'
alias ru='LANG=ru_RU.UTF-8'
alias mpvgui='mpv --player-operation-mode=pseudo-gui'
alias pacaur='yay'
# vars
export EDITOR='vim'
export VISUAL='vim'
# greeting
[ -f ~/.bash_greeting ] && echo -e "\n$(shuf -n 1 $HOME/.bash_greeting)\n"