Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # ~/.bashrc
- #
- # If not running interactively, don't do anything
- [[ $- != *i* ]] && return
- # Joe Mods
- alias ls='ls --color=auto'
- alias grep='grep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias egrep='egrep --color=auto'
- alias vi="vim"
- # alias mount="mount | column -t"
- alias pacman="sudo pacman"
- alias tunes="ncmpcpp"
- alias youtube-dl="youtube-dl -ci -o '%(title)s-%(upload_date)s-%(ext)s'"
- alias cp='vcp'
- #alias mv='vmv'
- alias gn='geeknote'
- PATH=/usr/local/sbin:/usr/lib:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/joe/Scripts:/home/joe/bin:/var/run/user/1000/gvfs/
- HISTCONTROL=ignoredups
- HISTCONTROL=erasedups
- PROMPT_COMMAND='history -a; history -n' # write command to histopry when issued as opposed to the default end of session.
- shopt -s histappend # append - not truncate
- shopt -s checkwinsize # checks window size after each command and refreshes screen.
- HISTFILESIZE=3000
- HISTSIZE=3000
- PS1="\[\e[00;31m\][- \[\e[107;34m\]\u@\h\[\e[00;31m\]- ]
- |-\[\e[107;31m\] in [* \W * ]\[\e[00;31m\]-|-->\[\e[00m\]"
- PS2="\e[04;31mContinue Please\e[00m-> "
- HISTTIMEFORMAT='%D -> '
- PROMPT_DIRTRIM=3
- EDITOR=vim; export $EDITOR
- # Functions ---
- up ()
- {
- sudo yaourt -Syy
- sudo yaourt -Syu
- sudo pacman -Syc
- }
- Abigail-Tux ()
- {
- clear
- figlet Abigail-Tux
- ssh -X abigail@10.0.0.246
- }
- Kevin-Tux ()
- {
- clear
- figlet Kevin-Tux
- ssh -X joe@10.0.0.247
- }
- Aiden-Tux ()
- {
- clear
- figlet Aiden-Tux
- ssh -X aiden@10.0.0.248
- }
- Envy-Tux ()
- {
- clear
- figlet Envy-Tux
- ssh -X joe@10.0.0.249
- }
- Tux-Box ()
- {
- clear
- figlet Tux-Box
- ssh -X joe@10.0.0.250
- }
- goodnight ()
- {
- ssh aiden@10.0.0.16 'sudo shutdown -h now && exit'
- echo -e "\e[00;31m Aiden-Tux has been shutdown for the night $USER \e[00m"
- echo
- echo -e "\e[00;32m --- Processing ---- \e[00m"
- ssh joe@10.0.0.22 'sudo shutdown -h now && exit'
- echo
- echo -e "\e[00;31m Kevin-Tux has been shutdown for the night $USER \e[00m"
- ssh abigail@10.0.0.23 'sudo shutdown -h now && exit'
- echo -e "\e[00;31m Abigail-Tux has been shutdown for the night $USER \e[00m"
- echo
- echo -e "\e[00;32m --- Processing ---- \e[00m"
- ssh family@10.0.0.28 'sudo shutdown -h now && exit'
- echo -e "\e[00;31m Aiden-Tux has been shutdown for the night $USER \e[00m"
- echo
- echo -e "\e[00;32m --- Processing ---- \e[00m"
- }
- # Enhance colored ls output; for example, broken (orphan) symlinks will start showing in a red hue. Add the following to ~/.bashrc and relogin, or source the file:
- eval $(dircolors -b)
- export GREP_COLOR="1;33"
- # Enable code syntax coloring by adding
- export LESS="-R"
- # Name of the host with T-Mux
- case "$TERM" in
- screen*)
- PROMPT_COMMAND="printf '\033k$(hostname -s)\033\\';"${PROMPT_COMMAND}
- ;;
- esac
- case "$TERM" in
- xterm*) TERM=xterm-256color
- esac
- # Color Man Pages
- man () \
- {
- env \
- LESS_TERMCAP_mb=$(printf "\e[1;37m") \
- LESS_TERMCAP_md=$(printf "\e[1;37m") \
- LESS_TERMCAP_me=$(printf "\e[0m") \
- LESS_TERMCAP_se=$(printf "\e[0m") \
- LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
- LESS_TERMCAP_ue=$(printf "\e[0m") \
- LESS_TERMCAP_us=$(printf "\e[0;36m") \
- man "$@"
- }
- # tab completion for sudo commands:
- complete -cf sudo
- # Terminal Launch
- alsi -c1=white -c2=red -t -u
- who -luHb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement