bash
Set bash as our shell.
SHELL=/bin/bash
Without this we get a zsh warning.
export BASH_SILENCE_DEPRECATION_WARNING=1
Command prompt color settings
if [ "$PS1" ]; then
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export CLICOLOR="exfxcxdxbxegedabagacad"
export PS1="\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\][\w]\[\e[0m\]: "
fi
Aliases
The -G option is for colorized output.
alias rm='rm -i'
alias dir='ls -sG'
alias lss='ls -FsG'
alias l='ls -CFG'
alias la='ls -FAG'
alias ll='ls -FlG'
alias ls='ls -FG'
alias c='clear'
Path Overview
Shell commands are searched in order, so, to override os commands, put the local commands first, or, higher up in the list.
- bin == binary
- sbin == system binary
- usr == non essential
This is in the default MacOS order:
export PATH=""
export PATH="$PATH/usr/local/bin:" # User supplied commands, listed first for override.
export PATH="$PATH/usr/bin:" # Most user commands.
export PATH="$PATH/bin:" # Essential before other file systems are mounted.
export PATH="$PATH/usr/sbin:" # Non-essential System binaries.
export PATH="$PATH/sbin:" # Essential System Binaries
Additional paths, temporarily commented.
export PATH="$PATH/usr/local/sbin:" # Locally installed system admin commands.
Setting PATH for Python 3.8
The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH="$HOME/.poetry/bin:$PATH"