-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
81 lines (56 loc) · 1.78 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
77
78
79
########
# BASE #
########
# Welcome
echo "Hello, $USER."
# Add All Programs To Path
export PATH=/usr/local/bin:$PATH
# Enable 256 Colors
export TERM=screen-256color
# Save Command History To .bash_history File
shopt -s histappend
# Autocorrect Typos In Pathnames
shopt -s cdspell
# Prefer US English & Use UTF-8
export LANG="en_US"
export LC_ALL="en_US.UTF-8"
# Set Default Editor To Vim
export EDITOR="vim"
###########
# ALIASES #
###########
# List All Files
alias ll='ls -al';
# Show/Hide All Files
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES;
killall Finder /System/Library/CoreServices/Finder.app && echo "Dotfiles are now visible."'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO;
killall Finder /System/Library/CoreServices/Finder.app && echo "Dotfiles are now hidden."'
# Open In iA Writer
alias ia="open $1 -a /Applications/iA\ Writer.app"
#########################
# PROMPTS & COMPLETIONS #
#########################
# Official Git Completions
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
source $HOME/.git-completion.sh
# Official Git Prompt
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
source $HOME/.git-prompt.sh
# npm Completion
source $HOME/.npm-completion.sh
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Custom Prompt
# PS1='\W $(__git_ps1 "(%s) ")-> '
# PS1='\[$txtblu\W$txtrst\] $(__git_ps1 "$txtwht(%s)$txtrst ")-> '
PS1='\[\e[0;34m\W\e[0m\] $(__git_ps1 "\e[0;37m(%s)\e[0m ")-> '
##########
# EXTRAS #
##########
# Extras File
# For example, Pebble SDK w/ custom location.
# Update .extras file in home directory.
source $HOME/.extras