-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
76 lines (62 loc) · 2.71 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# This is the `defaults` template
# bash prompt show the bunny if it's mboszko (me), or to take out the bunny
# and add the username if it's not me, say if I'm working as root
export PS1='$(if [[ $USER == mboszko ]]; then echo "\[\e[36m\]\h:\[\e[m\]\[\e[33m\]\W 🐇 \$ \[\e[m\]"; else echo "\[\e[36m\]\u@\h:\[\e[m\]\[\e[33m\]\W \$ \[\e[m\]"; fi)'
# Terminal editor, colors
export EDITOR="bbedit"
export CLICOLOR=1
# Basic PATH stuff
export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH"
export TEMP="$HOME/tmp"
# Edit this file
# usage: type `profile` in Terminal
alias profile="bbedit ~/.bashrc"
# Navigate to location
alias home="cd ~"
alias desktop="cd ~/Desktop/"
alias dev="cd ~/dev/"
# Navigate to project directory
# alias ds="clear && cd ~/Documents/Repos/design-system"
# alias docs="clear && cd ~/Documents/Repos/design-system-docs"
# MacOS System
alias showhiddenfiles="defaults write com.apple.finder AppleShowAllFiles YES" # requires Finder relaunch
alias hidehiddenfiles="defaults write com.apple.finder AppleShowAllFiles NO" # requires Finder relaunch
# Environment variables
# export SOME_SECRET_PASSWORD="password123!"
# Better directory lists, console, and top presets
alias ll="ls -lahL"
alias con="tail -40 -f /var/log/system.log"
alias ttop="top -d -u -s 10"
# Lets you type part of a command, and ↑ ↓ will search history for a match
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
# Python and Virtual Environment defaults
export PYTHONVER=3.7
export PYTHON=python${PYTHONVER}
export PATH="/Library/Frameworks/Python.framework/Versions/${PYTHONVER}/bin:${PATH}"
export PROJECT_HOME="${HOME}/dev"
export WORKON_HOME="${HOME}/.virtualenvs"
export VIRTUALENVWRAPPER_TMPDIR="${WORKON_HOME}/tmp"
export VIRTUALENVWRAPPER_PYTHON=`which python3`
source "/Library/Frameworks/Python.framework/Versions/${PYTHONVER}/bin/virtualenvwrapper.sh"
export PIP_VIRTUALENV_BASE="${WORKON_HOME}"
export PIP_RESPECT_VIRTUALENV=true
# Because I can never remember the 'deactivate' command
alias workoff="deactivate"
# Xcode stuff
# export XCODE="`xcode-select --print-path`"
# export PATH="/Users/mboszko/bin:$XCODE/Tools:$PATH\
# :/opt/local/bin:/opt/local/sbin"
# The Omni Group
# Warning, since they like to use `zsh`,
# in case a sysadmin comes to work on my Mac, they will know it's `bash`
# WHITE='\033[1;37m'
# RED='\033[0;31m'
# NC='\033[0m' # No Color
# ON_RED='\e[101m'
# printf "${RED}This Terminal is running${NC} ${WHITE}${ON_RED} BASH ${NC}\n"
# Ruby Virtual Machine
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
# export PATH="$PATH:$HOME/.rvm/bin"
# Load RVM into a shell session *as a function*
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"