Created
February 10, 2016 18:54
-
-
Save jakimfett/092db40bebe0b03a6b08 to your computer and use it in GitHub Desktop.
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 | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# Set the default editor to nano. | |
export EDITOR=nano | |
export SVN_EDITOR=$(which nano) | |
# Add .local/bin folder to path | |
export PATH=$PATH:$HOME/.local/bin | |
# Tell grep to ignore subversion directory | |
export GREP_OPTIONS='--exclude-dir=.svn' | |
# don't put duplicate lines or lines starting with space in the history. | |
HISTCONTROL=ignoreboth | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# Write command history after each command in the terminal | |
export PROMPT_COMMAND='history -a' | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=2000 | |
HISTFILESIZE=8000 | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
# Special coloring for the command line | |
PS1='$pwd\[\033[0;2m\][\[\033[2;32m\]\u\[\033[0;2m\]@\[\033[0;34m\]\h \[\033[0;32m\]\w\[\033[0;2m\]]\[\033[0;0m\]\$ ' | |
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias grep='grep --color=auto' | |
# System Maintenence Aliases | |
alias update='sudo apt-get update;sudo apt-get dist-upgrade -y;sudo apt-get autoremove -y;' | |
alias ll='ls -lah' | |
fi | |
# Bash alias import. | |
if [ -f ~/.bash_aliases ]; then | |
source ~/.bash_aliases | |
fi | |
# enable programmable completion features | |
if ! shopt -oq posix; then | |
if [ -f /usr/share/bash-completion/bash_completion ]; then | |
source /usr/share/bash-completion/bash_completion | |
elif [ -f /etc/bash_completion ]; then | |
source /etc/bash_completion | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment