# .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias pop='popd' alias up='popd' alias myip='wget http://checkip.dyndns.org/ -O - -o /dev/null | awk "{ print \$6 }" | cut -d\< -f1' alias f='find . -name' alias beep='echo -e "\a"' alias screenoff='xset dpms force off' alias ltx='tmux ls' alias atx='tmux attach -t' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Define personal variables if [ -f $HOME/bin/setvars ]; then . $HOME/bin/setvars fi # Print fedora linux logo in interactive shell if [ -n "$PS1" ]; then if which linux_logo >/dev/null 2>&1; then linux_logo -L 12 -F "Bienvenue sur l'hôte #H\n#V, Compilé #C \n#P #X #T, #R, #U" fi fi HISTSIZE=1500 HISTIGNORE="history:exit:logout:[ ]*" RESET='\[$(tput sgr0)\]' BOLD='\[$(tput bold)\]' ULINE='\[$(tput smul)\]' BLUE='\[$(tput setaf 4)\]' GREEN='\[$(tput setaf 2)\]' RED='\[$(tput setaf 1)\]' YELLOW='\[$(tput setaf 3)\]' CYAN='\[$(tput setaf 6)\]' if [ $UID -eq 0 ]; then PS1="$BOLD$RED\h$BLUE:$YELLOW\w$RED\\$ $RESET$RED" else PS1="$BOLD$GREEN\u$BLUE@$YELLOW\h$BLUE:\w$GREEN\\$ $RESET$GREEN" fi PS2='suite-> '