Skip to content

Instantly share code, notes, and snippets.

@keinwort keinwort/.bash_profile
Last active Sep 18, 2017

Embed
What would you like to do?
dotfile Mac OS X .bash_profile #mac #bash #dotfile #xterm
# @mac
# ~/.bashrc: executed by bash(1) for non-login shells.
# source ./.bashrc (for reloading)
export PATH=/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/php5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
test -e ${HOME}/.iterm2_shell_integration.bash && source ${HOME}/.iterm2_shell_integration.bash
# export PS1='\u@\h: \w\$ '
export PS1='\[\033[0;34m\][\t]>\[\033[01;31m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\w\[\033[00m\]\n└╼ \$ '
umask 022
# export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
alias ls='ls -F'
alias l='ls -lF'
alias la='ls -laF'
#commands
alias shutup='shutdown -h now'
alias aptgetups='apt-get update && apt-get dist-upgrade'
alias winver='lsb_release -a && uname -a && uname -r'
alias jourl='journalctl -f -n1000 -o short-iso'
# navigation
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
### too hard to remember keycombo for "~" on a mac
alias cd-h='cd ~/'
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
# (x)term windowtitle
PROMPT_COMMAND='echo -ne "\033]0;$LOGNAME@${HOSTNAME}: ${PWD}\007"'
HISTSIZE=1000
HISTFILESIZE=2000
# NO dupes in bash_history
HISTCONTROL=ignoreboth:erasedups
PROMPT_COMMAND="history -w; history -c; history -r; $PROMPT_COMMAND"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.