dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:06:21 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:16:45 +0000 +0000
Commit: 9e957397d008035059bc8dc2688c7e318259d353
Parent: 94e2bba133253bb69d02e62f302d0c511fc8cec5


fish: Setup and configure fish

Includes installing it on OS X and setting vim up
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100644
index 0000000000000000000000000000000000000000..729c90a51fd608c60c8d1094ce703c384adddbc8
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,9 @@
+set fish_greeting
+
+set -x GEM_HOME $HOME/gems
+set PATH $GEM_HOME/bin $PATH
+
+set -x EDITOR vim
+
+set -x PIP_REQUIRE_VIRTUALENV "true"
+
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000000000000000000000000000000000000..6509692706cebc275e1803ed35c0173e61acaea3
--- /dev/null
+++ b/.config/fish/functions/fish_prompt.fish
@@ -0,0 +1,6 @@
+function fish_prompt
+    set_color $fish_color_cwd
+    echo -n '$ '
+    set_color normal
+end
+
diff --git a/.vimrc b/.vimrc
index 534c1c550caec3706041b4f2fba7059a16c96025..454d21bd90c7dac439527d6d1ca8bdc86ef19053 100644
--- a/.vimrc
+++ b/.vimrc
@@ -4,6 +4,8 @@
 set rtp+=~/.vim/bundle/vundle/
 call vundle#rc()
 
+Bundle "dag/vim-fish"
+
 call pathogen#runtime_append_all_bundles()
 call pathogen#helptags()
 
@@ -104,6 +106,9 @@ let g:gist_clip_command = 'pbcopy'
 let g:gist_post_private = 1
 
 " Syntastic
+let g:syntastic_python_flake8_args="--max-complexity 10"
 
-let g:syntastic_python_flake8_args="--max-complexity 10"
+if &shell =~# 'fish$'
+  set shell=bash
+endif
 
diff --git a/Brewfile b/Brewfile
index c8ada66746b40552b96633dcebf7aaca9048fc80..bdb61a9a88293d8092e77352c17ebed358d82e3c 100644
--- a/Brewfile
+++ b/Brewfile
@@ -1,3 +1,4 @@
+install fish
 install vim
 install tree
 install wget