]> git.quilime.com - dotfiles.git/commitdiff
Added Tmux master
authorGabriel Dunne <gdunne@quilime.com>
Sat, 23 Feb 2013 08:12:27 +0000 (00:12 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Sat, 23 Feb 2013 08:12:27 +0000 (00:12 -0800)
.bash_profile [new file with mode: 0644]
.emacs [new file with mode: 0644]
.tmux.conf [new file with mode: 0644]

diff --git a/.bash_profile b/.bash_profile
new file mode 100644 (file)
index 0000000..6cfd657
--- /dev/null
@@ -0,0 +1,162 @@
+export CLICOLOR=1
+export TERM=xterm-color
+export LSCOLORS=GxFxCxDxBxegedabagacad
+
+alias json='python -m json.tool'
+alias rmdsstores='find ./ -type f | grep .DS_Store | xargs rm'
+alias dl='~/scripts/dl.sh'
+alias resetmac='sudo ifconfig en0 ether 60:c5:47:05:de:d8'
+alias ack='~/bin/ack'
+alias ff='find . -type f -name '
+alias murder='kill -9'
+#alias ls='ls -F'
+#alias rm='rm -i'
+
+
+#donewut
+alias dunw='~/scripts/donewut.sh'
+alias dun='~/scripts/wutdo.sh'
+
+# mysql
+export PATH=~/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH
+export EDITOR=vim
+
+# MacPorts Installer addition on 2011-10-15_at_10:58:47: adding an appropriate PATH variable for use with MacPorts.
+export PATH=/opt/local/bin:/opt/local/sbin:$PATH
+# Finished adapting your PATH environment variable for use with MacPorts.
+
+
+
+
+function parse_git_branch {
+  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+  echo "("${ref#refs/heads/}")"
+}
+
+# colors
+# Reset
+Color_Off='\e[0m'       # Text Reset
+
+# Regular Colors
+Black='\e[0;30m'        # Black
+Red='\e[0;31m'          # Red
+Green='\e[0;32m'        # Green
+Yellow='\e[0;33m'       # Yellow
+Blue='\e[0;34m'         # Blue
+Purple='\e[0;35m'       # Purple
+Cyan='\e[0;36m'         # Cyan
+White='\e[0;37m'        # White
+
+# Bold
+BBlack='\e[1;30m'       # Black
+BRed='\e[1;31m'         # Red
+BGreen='\e[1;32m'       # Green
+BYellow='\e[1;33m'      # Yellow
+BBlue='\e[1;34m'        # Blue
+BPurple='\e[1;35m'      # Purple
+BCyan='\e[1;36m'        # Cyan
+BWhite='\e[1;37m'       # White
+
+# Underline
+UBlack='\e[4;30m'       # Black
+URed='\e[4;31m'         # Red
+UGreen='\e[4;32m'       # Green
+UYellow='\e[4;33m'      # Yellow
+UBlue='\e[4;34m'        # Blue
+UPurple='\e[4;35m'      # Purple
+UCyan='\e[4;36m'        # Cyan
+UWhite='\e[4;37m'       # White
+
+# Background
+On_Black='\e[40m'       # Black
+On_Red='\e[41m'         # Red
+On_Green='\e[42m'       # Green
+On_Yellow='\e[43m'      # Yellow
+On_Blue='\e[44m'        # Blue
+On_Purple='\e[45m'      # Purple
+On_Cyan='\e[46m'        # Cyan
+On_White='\e[47m'       # White
+
+# High Intensity
+IBlack='\e[0;90m'       # Black
+IRed='\e[0;91m'         # Red
+IGreen='\e[0;92m'       # Green
+IYellow='\e[0;93m'      # Yellow
+IBlue='\e[0;94m'        # Blue
+IPurple='\e[0;95m'      # Purple
+ICyan='\e[0;96m'        # Cyan
+IWhite='\e[0;97m'       # White
+
+# Bold High Intensity
+BIBlack='\e[1;90m'      # Black
+BIRed='\e[1;91m'        # Red
+BIGreen='\e[1;92m'      # Green
+BIYellow='\e[1;93m'     # Yellow
+BIBlue='\e[1;94m'       # Blue
+BIPurple='\e[1;95m'     # Purple
+BICyan='\e[1;96m'       # Cyan
+BIWhite='\e[1;97m'      # White
+
+# High Intensity backgrounds
+On_IBlack='\e[0;100m'   # Black
+On_IRed='\e[0;101m'     # Red
+On_IGreen='\e[0;102m'   # Green
+On_IYellow='\e[0;103m'  # Yellow
+On_IBlue='\e[0;104m'    # Blue
+On_IPurple='\e[10;95m'  # Purple
+On_ICyan='\e[0;106m'    # Cyan
+On_IWhite='\e[0;107m'   # White
+
+
+#Black       0;30     Dark Gray     1;30
+#Blue        0;34     Light Blue    1;34
+#Green       0;32     Light Green   1;32
+#Cyan        0;36     Light Cyan    1;36
+#Red         0;31     Light Red     1;31
+#Purple      0;35     Light Purple  1;35
+#Brown       0;33     Yellow        1;33
+#Light Gray  0;37     White         1;37
+
+
+RED="\[\033[31m\]"
+GREEN="\[\033[32m\]"
+YELLOW="\[\033[33m\]"
+BLUE="\[\033[0;34m\]"
+BLUE_B="\[\033[1;34m\]"
+NO_COLOR="\[\033[0m\]"
+NO_COLOR_B="\[\033[1;0m\]"
+GRAY="\[\033[1;30m"
+CUR="\[\033[1;34m\]"
+#export PS1="$RED\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)"
+export PS1="\n$BWhite\u@\h $BLUE_B\w/ $RED\$(parse_git_branch) $NO_COLOR \n$BLUE_B\$ $NO_COLOR"
+export PS2="$BLUE_B> $NO_COLOR";
+
+#pygments
+alias pcat=pygmentize
+function pless() {
+    pcat "$1" | less -R
+}
+
+
+
+
+function pdfman {
+    tmpfile="/tmp/man ${*}.pdf"
+    if [ \i -f "${tmpfile}" ]
+    then
+       man -t "${*}" | pstopdf -i -p "${tmpfile}"
+    fi
+    open "${tmpfile}"
+}
+
+
+# {{{
+# Node Completion - Auto-generated, do not touch.
+shopt -s progcomp
+for f in $(command ls ~/.node-completion); do
+  f="$HOME/.node-completion/$f"
+  test -f "$f" && . "$f"
+done
+# }}}
+
+
diff --git a/.emacs b/.emacs
new file mode 100644 (file)
index 0000000..5168220
--- /dev/null
+++ b/.emacs
@@ -0,0 +1,9 @@
+(setq backup-directory-alist
+      `((".*" . ,temporary-file-directory)))
+(setq auto-save-file-name-transforms
+      `((".*" ,temporary-file-directory t)))
+
+; disable backup
+; (setq backup-inhibited t)
+; disable auto save
+; (setq auto-save-default nil)
\ No newline at end of file
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644 (file)
index 0000000..105a325
--- /dev/null
@@ -0,0 +1,45 @@
+# remap prefix to Control + a
+set -g prefix C-a
+unbind C-b
+bind C-a send-prefix
+
+# force a reload of the config file
+unbind r
+bind r source-file ~/.tmux.conf
+
+# Copy mode
+unbind [
+unbind ]
+bind Escape copy-mode
+bind p paste-buffer
+
+# copy paste
+set-option -g default-command "reattach-to-user-namespace -l bash"
+bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
+bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
+
+
+# quick pane cycling
+#unbind ^A
+#bind ^A select-pane -t :.+
+
+set-option -g mouse-select-pane on
+set-option -g mouse-select-window on
+set-window-option -g mode-mouse on
+
+# v, h split
+unbind %
+bind \ split-window -h
+bind - split-window -v
+
+# panes
+bind up resize-pane -U 5
+bind down resize-pane -D 5
+bind left resize-pane -L 5
+bind right resize-pane -R 5
+
+# status bar
+set-option -g status-bg black
+set-option -g status-fg white
+
\ No newline at end of file