Skip to content

Commit d07f029

Browse files
committedDec 1, 2012
Initial commit
0 parents  commit d07f029

File tree

6 files changed

+525
-0
lines changed

6 files changed

+525
-0
lines changed
 

‎.aliases

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Detect which `ls` flavor is in use
2+
if ls --color > /dev/null 2>&1; then # GNU `ls`
3+
colorflag="--color"
4+
else # OS X `ls`
5+
colorflag="-G"
6+
fi
7+
8+
# List all files colorized in long format
9+
alias l="ls -l ${colorflag}"
10+
11+
# List all files colorized in long format, including dot files
12+
alias la="ls -la ${colorflag}"
13+
14+
# List only directories
15+
alias lsd='ls -l ${colorflag} | grep "^d"'
16+
17+
# Always use color output for `ls`
18+
alias ls="command ls ${colorflag}"
19+
export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'

‎.bash_profile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Add Homebrew `/usr/local/bin` and User `~/bin` to the `$PATH`
2+
PATH=/usr/local/bin:$PATH
3+
PATH=$HOME/bin:$PATH
4+
export PATH
5+
6+
# Load the shell dotfiles, and then some:
7+
# * ~/.path can be used to extend `$PATH`.
8+
# * ~/.extra can be used for other settings you don’t want to commit.
9+
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
10+
[ -r "$file" ] && source "$file"
11+
done
12+
unset file

‎.bash_prompt

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
2+
# Shamelessly copied from https://github.com/gf3/dotfiles
3+
# Screenshot: http://i.imgur.com/s0Blh.png
4+
5+
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
6+
export TERM=gnome-256color
7+
elif infocmp xterm-256color >/dev/null 2>&1; then
8+
export TERM=xterm-256color
9+
fi
10+
11+
if tput setaf 1 &> /dev/null; then
12+
tput sgr0
13+
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
14+
# Changed these colors to fit Solarized theme
15+
MAGENTA=$(tput setaf 125)
16+
ORANGE=$(tput setaf 166)
17+
GREEN=$(tput setaf 64)
18+
PURPLE=$(tput setaf 61)
19+
WHITE=$(tput setaf 244)
20+
else
21+
MAGENTA=$(tput setaf 5)
22+
ORANGE=$(tput setaf 4)
23+
GREEN=$(tput setaf 2)
24+
PURPLE=$(tput setaf 1)
25+
WHITE=$(tput setaf 7)
26+
fi
27+
BOLD=$(tput bold)
28+
RESET=$(tput sgr0)
29+
else
30+
MAGENTA="\033[1;31m"
31+
ORANGE="\033[1;33m"
32+
GREEN="\033[1;32m"
33+
PURPLE="\033[1;35m"
34+
WHITE="\033[1;37m"
35+
BOLD=""
36+
RESET="\033[m"
37+
fi
38+
39+
export MAGENTA
40+
export ORANGE
41+
export GREEN
42+
export PURPLE
43+
export WHITE
44+
export BOLD
45+
export RESET
46+
47+
function parse_git_dirty() {
48+
[[ $(git status 2> /dev/null | tail -n1) != *"working directory clean"* ]] && echo "*"
49+
}
50+
51+
function parse_git_branch() {
52+
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/"
53+
}
54+
55+
export PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on \")\[$PURPLE\]\$(parse_git_branch)\[$WHITE\]\n\$ \[$RESET\]"
56+
export PS2="\[$ORANGE\]→ \[$RESET\]"

‎.gitconfig

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[alias]
2+
# Show verbose output about tags, branches or remotes
3+
tags = tag -l
4+
branches = branch -a
5+
remotes = remote -v
6+
7+
[color]
8+
# Use colors in Git commands that are capable of colored output when outputting to the terminal
9+
ui = auto
10+
[color "branch"]
11+
current = yellow reverse
12+
local = yellow
13+
remote = green
14+
[color "diff"]
15+
meta = yellow bold
16+
frag = magenta bold
17+
old = red bold
18+
new = green bold
19+
[color "status"]
20+
added = yellow
21+
changed = green
22+
untracked = cyan
23+
24+
# Use `origin` as the default remote on the `master` branch in all cases
25+
[branch "master"]
26+
remote = origin
27+
merge = refs/heads/master
28+

‎.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Folder view configuration files
2+
.DS_Store
3+
Desktop.ini
4+
5+
# Thumbnail cache files
6+
._*
7+
Thumbs.db
8+
9+
# Files that might appear on external disks
10+
.Spotlight-V100
11+
.Trashes
12+
13+
# Compiled Python files
14+
*.pyc
15+
16+
# Application specific files
17+
venv
18+
node_modules
19+
.sass-cache

0 commit comments

Comments
 (0)