Skip to content

Instantly share code, notes, and snippets.

@mimiflynn
Last active June 11, 2025 13:00
Show Gist options
  • Select an option

  • Save mimiflynn/9144157 to your computer and use it in GitHub Desktop.

Select an option

Save mimiflynn/9144157 to your computer and use it in GitHub Desktop.
# pip should only run in when virtualenv is currently activated
# export PIP_REQUIRE_VIRTUALENV=true
# cache pip-installed packages to avoid re-downloading
# export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
alias profile='vim ~/.bash_profile'
alias rehash='source ~/.bash_profile'
# alias show='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
# alias hide='defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder'
alias ls='ls -G'
alias ll='ls -al'
# Path ------------------------------------------------------------
if [ -f ~/.bash_path ]; then
source ~/.bash_path
fi
# Load prompt
if [ -f ~/.bash_prompt ]; then
source ~/.bash_prompt
fi
# Load alias'
if [ -f ~/.bash_alias ]; then
source ~/.bash_alias
fi
# Colors
TEMP="\[\033[1;30m\]"
BLACK="\[\033[0;30m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
ORANGE="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
PURPLE="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"
LIGHT_GRAY="\[\033[0;37m\]"
LIGHT_BLACK="\[\033[1;30m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
YELLOW="\[\033[1;33m\]"
LIGHT_BLUE="\[\033[1;34m\]"
LIGHT_PINK="\[\033[1;35m\]"
LIGHT_CYAN="\[\033[1;36m\]"
WHITE="\[\033[1;37m\]"
NO_COLOUR="\[\033[0m\]"
BLUE_BG="\[\033[0;44m\]"
# Prompt
# export PS1="$LIGHT_BLUE[$CYAN\h$LIGHT_BLUE][$WHITE\w$LIGHT_BLUE]\n$LIGHT_BLUE[$WHITE\t$LIGHT_BLUE]$NO_COLOUR\$ "
export PS1="$LIGHT_BLUE[$CYAN\u@\h$LIGHT_BLUE] [$LIGHT_RED\w$LIGHT_BLUE]\n$LIGHT_BLUE[$WHITE\d \@$LIGHT_BLUE] $NO_COLOUR\$ "
curl -o ~/.bash_prompt https://gist.githubusercontent.com/mimiflynn/9144157/raw/da873a6ff2fc05a0cab2ba179d381154f9c87bee/.bash_prompt
curl -o ~/.bash_profile https://gist.githubusercontent.com/mimiflynn/9144157/raw/0ee864b876658f596f2217923d9b718f67549650/.bash_profile
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment