My bashrc

08 May 2016

This is a backup of my .bashrc. I'm keeping it safe in case I'm rebuilding my machine.

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

# THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/kodi/.sdkman"
[[ -s "/home/kodi/.sdkman/bin/sdkman-init.sh" ]] && source "/home/kodi/.sdkman/bin/sdkman-init.sh"

# Strong red prompt
export PS1="\[$(tput setaf 1)\]\[$(tput bold)\][\u@\h \W]\\$ \[$(tput sgr0)\]"
# system
alias shutdown='sudo shutdown -h now'
alias reboot='sudo reboot'

# restarting services
alias rshttp='sudo systemctl restart httpd'
alias rsfw='sudo systemctl restart firewalld'
alias rssshd='sudo systemctl restart sshd'

# folder explorer
alias la='ls -lah'
alias li='ls -lih'
alias ld='ls -lid'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias down='cd ~/Downloads'
alias docs='cd ~/Documents'
alias pics='cd ~/Pictures'
alias home='cd ~/'
alias www='cd /var/www/html'

# others
alias x='exit'
alias c='clear'
alias vi='sublime'

# yum
alias yume='sudo yum erase'
alias yumi='sudo yum install'
alias yumr='sudo yum remove'
alias yumu='sudo yum update'
alias yums='yum search'
alias yuml='yum list'
alias yumc='sudo yum clean all'