Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

lazy initial commit

  • Loading branch information...
commit 40eb2bbbaf716684b5a569f974fb948624431f58 0 parents
@webframp authored
175 .Xdefaults
@@ -0,0 +1,175 @@
+! xft settings
+Xft.dpi: 96
+Xft.autohint: false
+Xft.antialias: true
+Xft.hinting: true
+Xft.lcdfilter: lcddefault
+Xft.hintstyle: hintfull
+Xft.rgba: rgb
+
+! first disable Keycap Picture insert mode
+URxvt.iso14755: false
+URxvt.iso14755_52: false
+URxvt.background: black
+URxvt.foreground: white
+URxvt*font: xft:Inconsolata:pixelsize=16
+!URxvt.font: xft:terminus:pixelsize=16
+URxvt.perl-ext-common: default,url-select
+URxvt.keysym.M-u: perl:url-select:select_next
+URxvt.urlLauncher: /usr/bin/conkeror
+URxvt.underlineURLs: true
+URxvt.scrollBar: false
+URxvt.scrollBar_floating: true
+URxvt.scrollBar_right: true
+URxvt.saveLines: 2500
+URxvt.urgentOnBell: true
+URxvt.insecure: true
+
+!! drop in Solarized colorscheme for Xresources/Xdefaults
+
+!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
+!!--------- ------- ---- ------- ----------- ---------- ----------- -----------
+!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
+!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
+!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
+!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
+!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
+!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
+!!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93
+!!base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
+!!yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
+!!orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
+!!red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
+!!magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
+!!violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
+!!blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
+!!cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
+!!green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
+
+! #define S_base03 #002b36
+! #define S_base02 #073642
+! #define S_base01 #586e75
+! #define S_base00 #657b83
+! #define S_base0 #839496
+! #define S_base1 #93a1a1
+! #define S_base2 #eee8d5
+! #define S_base3 #fdf6e3
+! #define S_yellow #b58900
+! #define S_orange #cb4b16
+! #define S_red #dc322f
+! #define S_magenta #d33682
+! #define S_violet #6c71c4
+! #define S_blue #268bd2
+! #define S_cyan #2aa198
+! #define S_green #859900
+
+! *background: S_base03
+! *foreground: S_base00
+! *fading: 40
+! *fadeColor: S_base03
+! *cursorColor: S_base1
+! *pointerColorBackground:S_base01
+! *pointerColorForeground:S_base1
+
+! !! black dark/light
+! *color0: S_base02
+! *color8: S_base03
+
+! !! red dark/light
+! *color1: S_red
+! *color9: S_orange
+
+! !! green dark/light
+! *color2: S_green
+! *color10: S_base01
+
+! !! yellow dark/light
+! *color3: S_yellow
+! *color11: S_base00
+
+! !! blue dark/light
+! *color4: S_blue
+! *color12: S_base0
+
+! !! magenta dark/light
+! *color5: S_magenta
+! *color13: S_violet
+
+! !! cyan dark/light
+! *color6: S_cyan
+! *color14: S_base1
+
+! !! white dark/light
+! *color7: S_base2
+! *color15: S_base3
+
+! URLs
+urxvt*.colorUL: #ffffff
+
+!
+!!! Zenburn color-scheme !!!
+!
+urxvt*background: #3f3f3f
+urxvt*foreground: #dcdccc
+! black + red
+!urxvt*color0: #3f3f3f
+urxvt*color0: #1E2320
+urxvt*color1: #705050
+! green + yellow
+urxvt*color2: #60b48a
+urxvt*color3: #dfaf8f
+! blue + purple
+urxvt*color4: #506070
+urxvt*color5: #dc8cc3
+! cyan + white
+urxvt*color6: #8cd0d3
+urxvt*color7: #dcdccc
+! bright-black + bright-red
+urxvt*color8: #709080
+urxvt*color9: #dca3a3
+! bright-green + bright-yellow
+urxvt*color10: #c3bf9f
+urxvt*color11: #f0dfaf
+! bright-blue + bright-purple
+urxvt*color12: #94bff3
+urxvt*color13: #ec93d3
+! bright-cyan + bright-white
+urxvt*color14: #93e0e3
+urxvt*color15: #ffffff
+!
+
+! XTERM - zenburn
+xterm*internalBorder: 0
+xterm*loginShell: true
+xterm*scrollBar: false
+xterm*cursorBlink: false
+!xterm*geometry: 80x26
+xterm*saveLines: 65535
+xterm*dynamicColors: on
+xterm*highlightSelection: true
+! Appearance
+xterm*utf8: 2
+xterm*eightBitInput: true
+xterm*metaSendsEscape: true
+xterm*font: -xos4-terminus-medium-*-*-*-12-*-*-*-*-*-iso8859-2
+xterm*boldFont: -xos4-terminus-bold-*-*-*-12-*-*-*-*-*-iso8859-2
+xterm*cursorColor: #DCDCCC
+! Zenburn
+xterm*background: #3f3f3f
+xterm*foreground: #dcdccc
+xterm*color0: #1E2320
+xterm*color1: #705050
+xterm*color2: #60b48a
+xterm*color3: #dfaf8f
+xterm*color4: #506070
+xterm*color5: #dc8cc3
+xterm*color6: #8cd0d3
+xterm*color7: #dcdccc
+xterm*color8: #709080
+xterm*color9: #dca3a3
+xterm*color10: #c3bf9f
+xterm*color11: #f0dfaf
+xterm*color12: #94bff3
+xterm*color13: #ec93d3
+xterm*color14: #93e0e3
+xterm*color15: #ffffff
4 .Xmodmap
@@ -0,0 +1,4 @@
+! Swap caps and control in X
+remove Lock = Caps_Lock
+keycode 66 = Control_L
+add Control = Control_L
BIN  .colorprofiles/colorlcd.icc
Binary file not shown
25 .offlineimaprc
@@ -0,0 +1,25 @@
+[general]
+metadata = ~/.offlineimap
+accounts = GmailMain
+ui = basic
+
+[Account GmailMain]
+localrepository = GmailLocal
+remoterepository = GmailRemote
+# run every 15m by cron instead
+# # minutes until next sync
+# autorefresh = 10
+# # number of 'quick' syncs between full syncs, saves time
+# quick = 5
+status_backend = sqlite
+postsynchook = ~/bin/notmuch_sync.sh
+
+[Repository GmailLocal]
+# how we store mail here
+type = Maildir
+localfolders = ~/.mail/GMAIL
+
+[Repository GmailRemote]
+type = Gmail
+remoteuser = sean.escriva@gmail.com
+remotepassfile = ~/.mailpass
45 .tmux.conf
@@ -0,0 +1,45 @@
+# basic settings
+#set -g default-terminal "screen-256color"
+set -g default-terminal "xterm-256color"
+setw -g xterm-keys on
+set -g base-index 1
+set -s escape-time 0
+setw -g mode-mouse off
+
+# bindings
+# first rebind prefic
+unbind C-b
+set -g prefix C-z
+bind C-z send-prefix
+# easily reload config
+bind r source-file ~/.tmux.conf \; display "Reloaded!"
+# vim like window nav
+bind j select-pane -D
+bind k select-pane -U
+
+# and resize
+bind -r H resize-pane -L 5
+bind -r J resize-pane -D 5
+bind -r K resize-pane -U 5
+bind -r L resize-pane -R 5
+
+# bind | send-keys " ~/bin/tmux-split -h" \; send-keys "Enter"
+# bind - send-keys " ~/bin/tmux-split -v" \; send-keys "Enter"
+
+bind | split-window -h
+bind - split-window -v
+
+# clipboard
+bind C run-shell "tmux showb | xsel -ib"
+bind V run-shell "tmux setb `xsel -ib"
+
+# colors
+set -g status-bg white
+set -g status-fg black
+setw -g window-status-fg blue
+setw -g window-status-bg default
+setw -g window-status-attr dim
+setw -g window-status-current-fg white
+setw -g window-status-current-bg blue
+setw -g window-status-current-attr bright
+set -g status-right "#[fg=blue]#H"
32 .xinitrc
@@ -0,0 +1,32 @@
+# Source system-wide xinit scripts
+if [ -d /etc/X11/xinit/xinitrc.d/ ]; then
+ for f in /etc/X11/xinit/xinitrc.d/*; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+# set proper color profile
+xcalib $HOME/.colorprofiles/colorlcd.icc
+# system tray
+trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype percent --width 5 --transparent true --tint 0x3f3f3f --height 12 &
+# set the cursor
+xsetroot -cursor_name left_ptr
+# clipboard manager
+parcellite &
+batti &
+autocutsel -fork &
+autocutsel -selection PRIMARY -fork &
+# run terminal daemon
+urxvtd &
+# load defaults and remap capslock
+xrdb $HOME/.Xdefaults
+xmodmap $HOME/.Xmodmap
+# set background
+eval `cat $HOME/.fehbg`
+# gimmah some soundz
+pulseaudio --start
+# turn on keyboard backlight
+echo 100 | sudo tee /sys/class/leds/smc::kbd_backlight/brightness
+# best wm evah
+xmonad
203 .xmonad/xmonad.hs
@@ -0,0 +1,203 @@
+-- xmonad.hs
+-- XMonad config file - sean.escriva@gmail.com
+--
+import XMonad
+-- Hooks
+import XMonad.Hooks.DynamicLog hiding (xmobar, xmobarPP, xmobarColor, sjanssenPP, byorgeyPP)
+import XMonad.Hooks.UrgencyHook (withUrgencyHook, NoUrgencyHook(..), focusUrgent)
+import XMonad.Hooks.ManageDocks (avoidStruts, manageDocks, ToggleStruts(..))
+import XMonad.Hooks.ManageHelpers (isFullscreen, isDialog, doFullFloat, doCenterFloat)
+import XMonad.Hooks.SetWMName
+-- Actions
+import XMonad.Actions.CycleWS (nextScreen, prevScreen, shiftNextScreen, shiftPrevScreen, toggleWS, Direction1D(..), WSType(..), findWorkspace)
+import XMonad.Actions.WindowGo (title, raiseMaybe, runOrRaise) --, (=?))
+import XMonad.Actions.UpdatePointer
+-- Utils
+import XMonad.Util.Run (safeSpawn, unsafeSpawn, runInTerm, spawnPipe)
+import XMonad.Util.EZConfig hiding (additionalMouseBindings, removeMouseBindings)
+import XMonad.Util.Scratchpad (scratchpadSpawnAction, scratchpadManageHook, scratchpadFilterOutWorkspace)
+import XMonad.Util.WorkspaceCompare (getSortByIndex)
+-- Layouts
+import XMonad.Layout.NoBorders (smartBorders)
+import XMonad.Layout.ResizableTile (ResizableTall(..))
+import XMonad.Layout.Grid (Grid(..))
+import XMonad.Layout.Magnifier (magnifiercz)
+import XMonad.Layout.PerWorkspace (onWorkspace)
+import XMonad.Layout.IM
+import XMonad.Layout.Reflect (reflectHoriz)
+import XMonad.Layout.Named
+
+-- Prompt
+-- import XMonad.Prompt
+
+import System.IO (hPutStrLn)
+import Data.Char (isSpace)
+import qualified XMonad.StackSet as W
+
+-- import Graphics.X11.ExtraTypes.XF86
+
+-- basic colors
+cyan = "#00a0df"
+
+-- Color names are easier to remember:
+colorOrange = "#ff7701"
+colorDarkGray = "#171717"
+colorPink = "#e3008d"
+colorGreen = "#00aa4a"
+colorBlue = "#008dd5"
+colorYellow = "#efad3f"
+colorWhite = "#cfbfad"
+colorRed = "#b61819"
+colorPurple = "#9C3378"
+
+-- zenburn
+zbBackground = "#3f3f3f"
+zbForeground = "#dcdccc"
+zbBlack = "#1E2320"
+zbRed = "#705050"
+zbGreen = "#60b48a"
+zbYellow = "#dfaf8f"
+zbBlue = "#506070"
+zbPurple = "#dc8cc3"
+zbCyan = "#8cd0d3"
+zbWhite = "#dcdccc"
+zbBrightBack = "#709080"
+zbBrightRed = "#dca3a3"
+zbBrightGreen = "#c3bf9f"
+zbBrightYellow = "#f0dfaf"
+zbBrightBlue = "#94bff3"
+zbBrightPurple = "#ec93d3"
+zbBrightCyan = "#93e0e3"
+zbBrightWhite = "#ffffff"
+
+colorNormalBorder = zbGreen
+colorFocusedBorder = zbBrightGreen
+
+colorBG = zbBackground
+
+-- fonts
+barFont = "terminus"
+barXFont = "inconsolata:size=14"
+xftFont = "xft: inconsolata-14"
+
+statusBarCmd = "dzen2" ++
+ " -bg '" ++ colorBG ++ "'" ++
+ " -fg '" ++ zbBrightBlue ++ "'" ++
+ " -sa c" ++
+ " -fn '" ++ barXFont ++ "'" ++
+ " -w 1300 -x 0 -y 0 -ta l -expand r -e ''"
+
+mTerm = "urxvtc"
+
+smePP = defaultPP
+ { ppCurrent = dzenColor zbBrightRed colorBG . wrap "" ""
+ , ppVisible = dzenColor zbBrightBlue colorBG . wrap "" ""
+ , ppSep = dzenColor zbWhite colorBG " ^r(1x8) "
+ , ppUrgent = dzenColor colorBG zbYellow . wrap "[" "]"
+ , ppTitle = dzenColor zbWhite "" . trim
+ }
+
+standardLayouts = Mirror tiled |||
+ defaultTall |||
+ Full
+ where
+ tiled = Tall nmaster delta ratio
+ defaultTall = ResizableTall 1 (3/100) (1/2) []
+ nmaster = 1
+ ratio = toRational (2/(1 + sqrt 5 :: Double)) -- golden ratio
+ delta = 0.03
+
+-- grids = magnifiercz 1.2 (GridRatio (4/3)) |||
+-- GridRatio (4/3)
+
+gimp = reflectHoriz $
+ named "Gimp" $
+ withIM (11/64) (Role "gimp-toolbox") $
+ ResizableTall 2 (1/118) (11/20) [5/4,5/4,5/4]
+
+smeKeys :: [([Char], X ())]
+smeKeys =
+ [ ("M-p" , safeSpawn "yeganesh_run" [] )
+ , ("M-g" , runOrRaise "conkeror" (className =? "Conkeror"))
+ , ("M-s" , runOrRaise "skype" (className =? "Skype"))
+ , ("M-m" , safeSpawn "mumble" [] )
+ -- , ("M-S-g" , safePromptSelection "firefox-nightly")
+ -- , ("M-w" , goToSelected defaultGSConfig)
+ -- , ("M-C-n" , appendFilePrompt largeXPConfig { bgColor = colorOrange, fgColor = colorDarkGray } notesFile)
+ , ("M-`" , focusUrgent)
+ , ("M-i" , raiseMaybe (runInTerm "-title irssi" "sh -c 'tmux -D -R -S irc irssi'") (title =? "irssi"))
+ -- , ("M-S-i" , raiseMaybe (runInTerm "-title irssi" "sh -c 'ssh -t webframp@astrotrain screen -D -R -S irc irssi'") (title =? "irssi"))
+ -- , ("M-m" , raiseMaybe (runInTerm "-title mutt" "sh -c 'screen -D -R -S mail mutt'") (title =? "mutt"))
+ , ("M-b" , sendMessage ToggleStruts)
+ -- move window to and focus NonEmpty wss except scratchpad
+ , ("M-C-s" , shiftAndView Next)
+ , ("M-C-d" , shiftAndView Prev)
+ , ("M-f" , nextScreen)
+ , ("M-a" , prevScreen)
+ , ("M-S-f" , shiftNextScreen)
+ , ("M-S-a" , shiftPrevScreen)
+ , ("M-<Tab>" , toggleWS)
+ , ("M--" , toggleWS)
+ -- Media keys
+ , ("<XF86AudioLowerVolume>" , unsafeSpawn "amixer -q set Master 2dB-" )
+ , ("<XF86AudioMute>" , unsafeSpawn "amixer -q set Master toggle")
+ , ("<XF86AudioRaiseVolume>" , unsafeSpawn "amixer -q set Master 2dB+" )
+ -- Screenshot
+ , ("<XF86LaunchA>" , unsafeSpawn "scrot '%Y-%m-%d-%H%M_$wx$h.png' -e 'mv $f ~/screenshots/'")
+ , ("<XF86LaunchB>" , unsafeSpawn "scrot '%Y-%m-%d-%H%M_$wx$h.png' -e '/usr/bin/imgurbash $f'")
+ , ("<XF86MonBrightnessUp>", unsafeSpawn "xbacklight -inc 5")
+ , ("<XF86MonBrightnessDown>", unsafeSpawn "xbacklight -dec 5")
+ , ("<XF86KbdBrightnessUp>", unsafeSpawn "xbacklight -dec 5")
+ , ("<XF86KbdBrightnessDown>", unsafeSpawn "xbacklight -dec 5")
+ ]
+ where -- | non-empty workspaces less scratchpad
+ shiftAndView dir = findWorkspace getSortByIndexNoSP dir NonEmptyWS 1
+ >>= \t -> (windows . W.shift $ t) >> (windows . W.greedyView $ t)
+ getSortByIndexNoSP =
+ fmap (.scratchpadFilterOutWorkspace) getSortByIndex
+
+
+-- smeMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
+-- -- mod-button1, Set the window to floating mode and move by dragging
+-- [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
+-- -- mod-button2, Raise the window to the top of the stack
+-- , ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
+-- -- mod-button3, Set the window to floating mode and resize by dragging
+-- , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
+-- -- cycle through workspaces
+-- , ((controlMask .|. modMask, button4), nextScreen)
+-- , ((controlMask .|. modMask, button5), prevScreen)
+-- ]
+
+smeManageHook :: ManageHook
+smeManageHook = composeAll
+ [ resource =? "desktop_window" --> doIgnore
+ , className =? "MPlayer" --> doFloat
+ , isFullscreen --> doFullFloat
+ , isDialog --> doCenterFloat
+ ] <+> manageDocks
+
+smeLogHook h = do
+ dynamicLogWithPP $ smePP { ppOutput = hPutStrLn h }
+
+smeConfig = defaultConfig
+ { terminal = mTerm
+ , focusFollowsMouse = False
+ , modMask = mod4Mask -- command key
+ , focusedBorderColor = cyan
+ , layoutHook = avoidStruts $
+ smartBorders (
+ onWorkspace "5" gimp standardLayouts
+ )
+ , manageHook = smeManageHook
+ -- , mouseBindings = smeMouseBindings
+ }
+ `additionalKeysP` smeKeys
+
+strutsKey XConfig { XMonad.modMask = modMask } = (modMask, xK_b)
+
+-- Main
+main = do
+ h <- spawnPipe statusBarCmd
+ xmonad $ withUrgencyHook NoUrgencyHook $ smeConfig { logHook = smeLogHook h }
+
31 .zsh/functions
@@ -0,0 +1,31 @@
+function e() { emacs -nw $@ }
+function ed() { emacs --daemon }
+function ec() { emacsclient -t $@ }
+function es() { e --daemon=$1 && ec -s $1 }
+function el() { ps ax | egrep '[Ee]macs' }
+function ek() { ec -e '(kill-emacs)' -s $1 }
+
+function ssh-reagent () {
+ for agent in /tmp/ssh-*/agent.*; do
+ export SSH_AUTH_SOCK=$agent
+ if ssh-add -l 2>&1 > /dev/null; then
+ echo Found working SSH Agent:
+ ssh-add -l
+ return
+ fi
+ done
+ echo Cannot find ssh agent - maybe you should reconnect and forward it?
+}
+
+function setdsm() {
+ export PYTHONPATH=$PYTHONPATH:$PWD/..
+ export PYTHONPATH=$PYTHONPATH:$PWD
+ if [ -z "$1" ]; then
+ x=${PWD/\/[^\/]*\/}
+ export DJANGO_SETTINGS_MODULE=$x.settings
+ else
+ export DJANGO_SETTINGS_MODULE=$1
+ fi
+ echo "DJANGO_SETTINGS_MODULE set to $DJANGO_SETTINGS_MODULE"
+}
+
14 .zsh/nocorrect
@@ -0,0 +1,14 @@
+mv
+cd
+cp
+mkdir
+man
+find
+gcc
+scp
+nmcli
+ack-grep
+knife
+git
+ack
+j
153 .zshrc
@@ -0,0 +1,153 @@
+# Path to your oh-my-zsh configuration.
+ZSH=$HOME/.oh-my-zsh
+
+# Set name of the theme to load.
+# Look in ~/.oh-my-zsh/themes/
+# Optionally, if you set this to "random", it'll load a random theme each
+# time that oh-my-zsh is loaded.
+ZSH_THEME="gallifrey"
+
+# Set to this to use case-sensitive completion
+CASE_SENSITIVE="true"
+
+# Uncomment following line if you want red dots to be displayed while waiting for completion
+COMPLETION_WAITING_DOTS="true"
+
+# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(knife git github rvm extract ssh-agent gem autojump vagrant)
+
+source $ZSH/oh-my-zsh.sh
+
+# Customize to your needs..
+HOSTNAME=`hostname`
+
+#RVM
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
+
+# ALIASES
+alias l='ls -F -h'
+alias ll='ls -l -F -h'
+alias la='ls -a -F -h'
+alias lla='ls -l -a -F -h'
+
+# command equivalents
+alias -g A='|ack'
+alias -g L='|less'
+alias -g S='&> /dev/null &'
+alias -g G='|grep'
+alias -g GC='|grep --color=always'
+
+if [ `hostname | grep -c soundwave` -eq 1 -a ! `uname` = "Linux" ]; then
+ # handy, but only needed osx my workstation
+ alias startwin='VBoxManage startvm Win7'
+ alias stopwin='VBoxManage controlvm Win7 savestate'
+
+ if [ -f /Applications/Emacs.app/Contents/MacOS/Emacs ]; then
+ alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
+ alias emacsclient=/Applications/Emacs.app/Contents/MacOS/bin/emacsclient
+ export EDITOR="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
+ else
+ export EDITOR="emacs -nw"
+ fi
+
+ # suffix aliases on the mac
+ alias -s flac=open
+ alias -s mp3=open
+ alias -s ogg=open
+ alias -s wav=open
+ alias -s avi=open
+ alias -s mpeg=open
+ alias -s mpg=open
+ alias -s wmv=open
+ alias -s bmp=open
+ alias -s png=open
+ alias -s jpg=open
+ alias -s jpeg=open
+ alias -s gif=open
+ alias -s pdf=open
+ alias -s pyc=python
+
+fi # end mac only settings
+
+if [ -f $HOME/.zsh/functions ]; then
+ source $HOME/.zsh/functions
+fi
+
+# nocorrect aliases
+NOCORRECT=~/.zsh/nocorrect
+if [ -f $NOCORRECT ]; then
+ for p in `cat $NOCORRECT`; do alias $p="nocorrect $p"; done
+fi
+
+# drop into tmux if this is a login shell and we're not in tmux
+# already
+# if (which tmux >/dev/null) && [[ -o login ]] && [[ -z "$TMUX" ]] && [[ -f $HOME/bin/tmuxsh ]] && [[ $ITERM_PROFILE != 'Hotkey Window' ]]; then
+# exec zsh "$HOME/bin/tmuxsh" $(which tmux)
+# fi
+
+# some random stuff
+alias rb19='rvm use 1.9.3'
+alias x='ssh-agent startx'
+alias lsg='git status'
+alias vi=ec # kill old habits
+alias irssi="if [[ -n $TMUX ]]; then TERM=screen-256color irssi; else irssi; fi"
+
+
+# config editing
+alias notes='$EDITOR ~/notes.org'
+alias work='$EDITOR ~/org/work.org'
+alias muttrc='$EDITOR ~/.muttrc'
+alias zshrc='$EDITOR ~/.zshrc'
+alias vimrc='$EDITOR ~/.vimrc'
+alias hgrc='$EDITOR ~/.hgrc'
+alias emacsrc='$EDITOR ~/.emacs.d/init.el'
+alias xinitrc='$EDITOR ~/.xinitrc'
+
+# xmonad related
+alias editmonad='$EDITOR ~/.xmonad/xmonad.hs'
+alias testmonad='ghci ~/.xmonad/xmonad.hs'
+
+# may not work right on Lion
+alias -s org=$BROWSER
+alias -s com=$BROWSER
+alias -s net=$BROWSER
+alias -s html=$BROWSER
+# for archlinux
+alias -s PKGBUILD=$EDITOR
+
+# setup env
+setopt ALL_EXPORT
+HISTFILE=${HOME}/.zhistory
+HISTSIZE=3000 # big ol' hist file
+SAVEHIST=3000
+DIRSTACKSIZE=20 # rarely need more than that
+BROWSER="/usr/bin/conkeror"
+PAGER=less
+LESS='-RMS'
+LESS_TERMCAP_mb=$'\E[01;31m'
+LESS_TERMCAP_md=$'\E[01;31m'
+LESS_TERMCAP_me=$'\E[0m'
+LESS_TERMCAP_se=$'\E[0m'
+LESS_TERMCAP_so=$'\E[01;44;33m'
+LESS_TERMCAP_ue=$'\E[0m'
+LESS_TERMCAP_us=$'\E[01;32m'
+EDITOR=ec
+GREP_COLOR='1;32' #bright green
+GREP_OPTIONS='--color=auto'
+TEMP="/tmp"
+PYTHONSTARTUP="$HOME/.pythonrc"
+PYTHONPATH=$PYTHONPATH:.
+PATH=~/bin:/usr/local/bin:/usr/texbin:$HOME/.rvm/bin:/bin:/usr/sbin:/sbin:/usr/bin:/usr/X11/bin
+ALLUSERSPROFILE="$HOME/.pkg/"
+# put private stuff in a separate, git ignored file
+source $HOME/.zsh/private_env
+unsetopt ALL_EXPORT
+
+# for ssh-agent plugin
+zstyle :omz:plugins:ssh-agent agent-forwarding on
+zstyle :omz:plugins:ssh-agent id_rsa id_rsa_estately
+
+# user functions moved to ~/.zsh/functions
+# no correct commands in ~/.zsh/nocorrect
+
4 notmuch.el
@@ -0,0 +1,4 @@
+;;;; emails!
+(require 'notmuch)
+(setq message-kill-buffer-on-exit t)
+(setq sendmail-program "/usr/bin/msmtp")
15 notmuch_sync.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+notmuch new
+
+# add additional tagging, mailing lists
+notmuch tag +chef list:"<chef.lists.opscode.com>"
+notmuch tag +chef-dev list:"<chef-dev.lists.opscode.com>"
+notmuch tag +heavywater +goldstar list:"<goldstar.goldstar.github.com>"
+notmuch tag +pdxfunc list:"<pdxfunc.googlegroups.com>"
+notmuch tag +pdxpython list:"portland.python.org"
+notmuch tag +pdxdevops list:"<pdxdevops.googlegroups.com>"
+notmuch tag +pdxruby list"<pdxruby.googlegroups.com>"
+notmuch tag +xmonad list:"xmonad.haskell.org"
+notmuch tag +ptp-general list:"<ptp-general.googlegroups.com>"
+notmuch tag +ptp-ops list:"<ptp-ops.googlegroups.com>"
+notmuch tag +inbox +unread -new -- tag:new
Please sign in to comment.
Something went wrong with that request. Please try again.