# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return CYAN="\[$(tput setaf 4)\]" RESET="\[$(tput sgr0)\]" # Set prompts PS1="${CYAN}[\u@\h ${RESET}\D{%H:%M}${CYAN} \W]${RESET}\$ " PS2="> " [ -z "$PS1" ] && return if [[ -n "$DISPLAY" ]] ; then [[ -n "$TMUX" ]] && export TERM=screen-256color || export TERM=xterm-256color fi if [[ -f ~/.shrc_common ]] ; then source ~/.shrc_common fi # Arch linux package search if [[ $(command -v aura) ]] ; then function psearch() { aura -Ss $1 aura -As $1 } fi shopt -s autocd shopt -s checkwinsize