# ~/.bashrc # If not running interactively, don't do anything [[ $- != *i* ]] && return # [ -r /etc/bash.cgroups ] && . /etc/bash.cgroups # Define color variables Color_Off='\[\033[0m\]' # Text Reset # Regular Colors Black='\[\033[0;30m\]' # Black Red='\[\033[0;31m\]' # Red Green='\[\033[0;32m\]' # Green Yellow='\[\033[0;33m\]' # Yellow Blue='\[\033[0;34m\]' # Blue Purple='\[\033[0;35m\]' # Purple Cyan='\[\033[0;36m\]' # Cyan White='\[\033[0;37m\]' # White # Bold BBlack='\[\033[1;30m\]' # Black BRed='\[\033[1;31m\]' # Red BGreen='\[\033[1;32m\]' # Green BYellow='\[\033[1;33m\]' # Yellow BBlue='\[\033[1;34m\]' # Blue BPurple='\[\033[1;35m\]' # Purple BCyan='\[\033[1;36m\]' # Cyan BWhite='\[\033[1;37m\]' # White # Setup Bash prompt shopt -s checkwinsize if [ "$(id -u)" = "0" ]; then base_color="${BRed}" else base_color="${BBlue}" fi PS1="${base_color}|=[${BWhite}\j${base_color}]==[${BWhite}\t${base_color}]===[${BWhite}\u${base_color}@${BWhite}\h${base_color}]====[${BWhite}\w${base_color}]${Color_Off}" PS1="${PS1}\n${base_color}|=====${BWhite}>>${Color_Off} " # Some aliases alias ls='ls --color=auto' alias dir='dir --color' alias pacup='su -c "pacman -Syu"' alias man='man -P most' # And some variables EDITOR="vim" PATH="${PATH}:${HOME}/bin" export PATH EDITOR