Created
December 30, 2011 09:43
-
-
Save CarlQLange/1539023 to your computer and use it in GitHub Desktop.
Revisions
-
CarlQLange created this gist
Dec 30, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ test -r /sw/bin/init.sh && . /sw/bin/init.sh export PATH=/opt/local/bin:/opt/local/sbin:~/bin:$PATH # alias vim to a better vim (one with GUI support, for example) alias vim="/Applications/MacVim.app/Contents/MacOS/Vim" # sets the title of the terminal (unecessary iirc but whatev) title(){ printf "\033k$1\033\\" } # echo the currently playing iTunes track track(){ osascript -e ' tell application "iTunes" if not (exists current track) then return "" return (get name of current track) & " by " & (get artist of current track) end tell' } # function to split the current tmux pane and open a file in vim v(){ tmux split-window "exec /Applications/MacVim.app/Contents/MacOS/Vim $1" #this is the absolute path because tmux doesn't follow aliases tmux select-layout even-horizontal > /dev/null #(it'll tell you it's switched layout otherwise) } # Pretty colours for less, man and some others export CLICOLOR="YES" export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold export LESS_TERMCAP_me=$'\E[0m' # end mode export LESS_TERMCAP_se=$'\E[0m' # end standout-mode export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline export PS1="\w \[\033[0;36m\]$ \[\033[0m\]"