123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #
- # ~/.bashrc
- #
- # If not running interactively, don't do anything
- [[ $- != *i* ]] && return
- # Make colorcoding available for everyone
- Black='\[\e[0;30m\]' # Black
- Red='\[\e[0;31m\]' # Red
- Green='\[\e[0;32m\]' # Green
- Yellow='\[\e[0;33m\]' # Yellow
- Blue='\[\e[0;34m\]' # Blue
- Purple='\[\e[0;35m\]' # Purple
- Cyan='\[\e[0;36m\]' # Cyan
- White='\[\e[0;37m\]' # White
- # Bold
- BBlack='\[\e[1;30m\]' # Black
- BRed='\[\e[1;31m\]' # Red
- BGreen='\[\e[1;32m\]' # Green
- BYellow='\[\e[1;33m\]' # Yellow
- BBlue='\[\e[1;34m\]' # Blue
- BPurple='\[\e[1;35m\]' # Purple
- BCyan='\[\e[1;36m\]' # Cyan
- BWhite='\[\e[1;37m\]' # White
- # Background
- On_Black='\[\e[40m\]' # Black
- On_Red='\[\e[41m\]' # Red
- On_Green='\[\e[42m\]' # Green
- On_Yellow='\[\e[43m\]' # Yellow
- On_Blue='\[\e[44m\]' # Blue
- On_Purple='\[\e[45m\]' # Purple
- On_Cyan='\[\e[46m\]' # Cyan
- On_White='\[\e[47m\]' # White
- NC='\[\e[m\]' # Color Reset
- ALERT="${BWhite}${On_Red}" # Bold White on red background
- # Useful aliases
- alias c='clear'
- alias ..='cd ..'
- alias ll='ls -CF --color=auto'
- alias ll='ls -lisa --color=auto'
- alias mkdir='mkdir -pv'
- alias free='free -mt'
- alias ps='ps auxf'
- alias psgrep='ps aux | grep -v grep | grep -i -e VSZ -e'
- alias wget='wget -c'
- alias histg='history | grep'
- alias myip='curl ipv4.icanhazip.com'
- alias grep='grep --color=auto'
- # Set PATH so it includes user's private bin directories
- PATH="${HOME}/bin:${HOME}/.local/bin:${HOME}/src/scripts:${HOME}/script:${PATH}"
- # Set prompt
- PS1="${Yellow}\u@\h${NC}: ${Blue}\w${NC} \\$ "
- export ANDROID_HOME=/opt/android-sdk/
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools
- export BROWSER="surf -bdfgIS"
- # bash aliases
- if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
- fi
- # bash git prompt
- if [ -f ~/src/bash-git-prompt/gitprompt.sh ]; then
- # To only show the git prompt in or under a repository directory
- GIT_PROMPT_ONLY_IN_REPO=1
- # To use upstream's default theme
- GIT_PROMPT_THEME=Default
- source ~/src/bash-git-prompt/gitprompt.sh
- fi
|