Skip to content

Instantly share code, notes, and snippets.

@pasamio
Created February 14, 2014 23:40
Show Gist options
  • Save pasamio/9011881 to your computer and use it in GitHub Desktop.
Save pasamio/9011881 to your computer and use it in GitHub Desktop.
Copy of my .profile for environments with shared NFS home directories (per server history file)
export PS1='\h:\W \u\$ '
alias v='ls -lh'
alias vv="du --max-depth=1 -k | sort -n | cut -f2 | xargs -d '\n' du -sh"
# Let the computer remember that which would otherwise be forgotten.
# Append to the history otherwise multiple tabs clobber each other.
shopt -s histappend
# Set the number of entries in the history file to be sufficiently large.
HISTFILESIZE=10000
# Set a per server history file
HISTFILE=~/.history/`hostname -s`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment