Created
July 17, 2019 11:45
-
-
Save eldariont/5fd67dfe4b47d64ed4e8116328045ef2 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
############### | |
#.bash_profile# | |
############### | |
#Load .profile | |
if [ -r ~/.profile ]; then . ~/.profile; fi | |
# If running interactively, load .bashrc | |
case "$-" in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac | |
########## | |
#.profile# | |
########## | |
#should contain stuff NOT specifically related to bash, such as environment variables (PATH and friends) | |
######### | |
#.bashrc# | |
######### | |
#should contain anything you'd want at an interactive command line. Command prompt, EDITOR variable, bash aliases for my use | |
#Aliases | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias la='ls -lisah' | |
alias gl='git log --graph --all --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%r) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative' | |
alias hg='history | grep' | |
umask 002 | |
#Set PS1 string | |
if [ "$TERM" = "linux" ] | |
then | |
#we're on the system console or maybe telnetting in | |
export PS1="\[\e[32;1m\]\u@\H > \[\e[0m\]" | |
else | |
#we're not on the console, assume an xterm | |
export PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\w>\[\e[0m\] " | |
fi | |
export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
export HISTSIZE=100000 # big big history | |
export HISTFILESIZE=100000 # big big history | |
shopt -s histappend # append to history, don't overwrite it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment