|
@@ -46,12 +46,38 @@ alias tmuxq="echo $TMUX"
|
|
|
|
|
|
alias httpserver="python -m SimpleHTTPServer"
|
|
|
|
|
|
+# Include .local/bin
|
|
|
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
|
|
then
|
|
|
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
|
|
fi
|
|
|
export PATH
|
|
|
|
|
|
+# Include roswell
|
|
|
+if ! [[ "$PATH" =~ "$HOME/.roswell/bin" ]];
|
|
|
+then
|
|
|
+ if [[ -d "$HOME/.roswell/bin" ]];
|
|
|
+ then
|
|
|
+ PATH="$HOME/.roswell/bin:$PATH"
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
+# Stop myself from opening vim when I mean to open emacs on the term
|
|
|
+vim()
|
|
|
+{
|
|
|
+ if command -v emacs;
|
|
|
+ then
|
|
|
+ if [[ $(ps aux | grep -v grep | grep emacs) ]];
|
|
|
+ then
|
|
|
+ # using anemic term/color/etc as it's faster in emacs
|
|
|
+ TERM=tmux emacsclient -nw $1
|
|
|
+
|
|
|
+ else
|
|
|
+ vim $1
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
# HN Helper functions
|
|
|
|
|
|
# Pull up comments for number
|