Created
September 1, 2017 17:52
-
-
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
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
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 |
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
#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