Created
November 4, 2015 16:13
-
-
Save jose-d/4482bf9d1ea1cc038e0a 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 | |
# based mostly on: http://stefaanlippens.net/my_bashrc_aliases_profile_and_other_stuff | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Enable programmable completion features. | |
if [ -f /etc/bash_completion ]; then | |
source /etc/bash_completion | |
fi | |
# Set the PS1 prompt (with colors). | |
PS1="\[\e[36;1m\]\h:\[\e[32;1m\]\w$ \[\e[0m\]" | |
# Set the default editor to vim. | |
export EDITOR=vim | |
# Avoid succesive duplicates in the bash command history. | |
export HISTCONTROL=ignoredups | |
# append to history file | |
shopt -s histappend | |
#update history immediatelly: | |
PROMPT_COMMAND='history -a' | |
# Add bash aliases. | |
if [ -f ~/.bash_aliases ]; then | |
source ~/.bash_aliases | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment