...
1# Install fish
2
3brew install fish
4
5# Add fish to your list of available shells
6
7echo "/usr/local/bin/fish/" | sudo tee -a /etc/shells
8
9# Make fish the defaul shell
10
11chsh -s /usr/local/bin/fish
12
13# Restart the terminal to load fish shell
14
15
16# Code snippet from https://github.com/gmarik/gist.sh/blob/master/gist.sh
17gist_clone ()
18{
19 if [ "$_PRIVATE" = "1" ]; then
20 URL="git@gist.github.com:$1.git"
21 else
22 URL="git://gist.github.com/$1.git"
23 fi
24
25 log "* cloning Gist from $URL"
26
27 CMD="git clone $URL gist-$1"
28
29 if [ "$_DEBUG" = "1" ]; then
30 echo $CMD
31 exit 0
32 fi
33
34 $CMD
35}
36
37# Code snippet from https://gist.github.com/thejefflarson/885812
38tiger_em () {
39 directory=$WD/$1
40 shift
41 until [ -z "$1" ]
42 do
43 get_em $directory "ftp://ftp2.census.gov/geo/tiger/TIGER2010/"$1
44 shift
45 done
46}
47
48# bare comment marker
49#
View as plain text