Last active
December 20, 2015 19:09
-
-
Save gilgamesh2k/6181142 to your computer and use it in GitHub Desktop.
.bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
alias df='df -h' | |
alias grep='grep --color=always' | |
alias l.='ls -d .* --color=always' | |
alias ll='ls -l --color=always' | |
alias ls='ls --color=always' | |
alias less='less -r' | |
alias cmatrix='cmatrix -b' | |
alias clipboard='zenity --text-info' | |
alias ..='cd ..' | |
alias ps?='ps aux | grep ' | |
ifconfig-print-all() { for i in `ifconfig -s | tail -n +2 | cut -f 1 -d ' '`; do echo -e -n "$i:\t"; ifconfig $i | grep mask | xargs | cut -f 2 -d ' '; done } | |
ifconfig-print() { echo -n `ip route get 8.8.8.8 | head -n +1 | tr -s ' ' | cut -d ' ' -f 7`; echo -n -e "\t<===>\t"; curl ifconfig.me; } | |
HISTSIZE=2500 | |
HISTCONTROL=erasedups | |
export PATH=$PATH:$HOME/.local/bin:$HOME/bin | |
export NMON=cdv | |
export EDITOR=nano | |
if [[ $(ps -ocommand= -p $PPID) =~ "drop-down-terminal" ]];then cmatrix;fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment