Skip to content

Instantly share code, notes, and snippets.

@atiensivu
Created September 1, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atiensivu/c8d9cf068673c18273213d79b3bc0047 to your computer and use it in GitHub Desktop.
Save atiensivu/c8d9cf068673c18273213d79b3bc0047 to your computer and use it in GitHub Desktop.
.bashrc and .bash_profile from MacOS 10.13 Beta (17A358a) with Brew and MacPorts with coreutils and dircolors enabled
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
source ~/.bashrc
#prereq '/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'
#prereq 'brew install openssh coreutils'
shopt -s expand_aliases
export CLICOLOR=1
export PATH="/usr/local/Cellar/openssh/7.5p1_1/bin/ssh:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/man:/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
# Terminal colours (after installing coreutils)
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"
export PS1="$NM[ $HI\u $HII\h $SI\w$NM ] $IN"
export LS_OPTIONS='--color=auto'
# Useful aliases
alias ls='/usr/local/bin/gls $LS_OPTIONS -hF --color'
alias ll='/usr/local/bin/gls $LS_OPTIONS -lhF --color'
alias l='/usr/local/bin/gls $LS_OPTIONS -lAhF --color'
alias ic='cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'
eval `/usr/local/bin/gdircolors ~/.dir_colors`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment