1. paradoxiology
  2. DotFiles

Commits

paradoxiology  committed 5b8afe9

Move the configuration files into their corresponding directories

  • Participants
  • Parent commits e079bf5
  • Branches default

Comments (0)

Files changed (6)

File .inputrc

-set completion-ignore-case On
-
-# Allow vi style editing for command input
-set editing-mode vi
-# Shows what vi mode is currently on, only available bash 4.3+
-# ':' represents normal mode, '+' represents insert mode
-set show-mode-in-prompt on 
-
-# Custom key mappings
-$if mode=vi
-  set keymap vi-command
-  "gg": beginning-of-history
-  "G": end-of-history
-  set keymap vi-insert
-  # "jk": vi-movement-mode
-  "\C-p": history-search-backward
-  "\C-n": history-search-forward
-  "\C-l": clear-screen
-  "\C-f": edit-and-execute-command
-  "\C-a": beginning-of-line
-  "\C-e": end-of-line
-  "\C-k": kill-line
-

File .profile

-
-# Colour ls output
-export CLICOLOR=1
-export CLICOLOR_FORCE=1
-# See LSCOLORS Generator: http://geoff.greer.fm/lscolors/
-export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
-export LS_COLORS="di=36;40:ln=1;;40:so=37;40:pi=1;;40:ex=35;40:bd=37;40:cd=37;40:su=37;40:sg=37;40:tw=32;40:ow=32;40:"
-
-# Colour bash prompt
-DEFAULT="\[\e[0;97m\]"
-LIGHT_GRAY="\[\e[37;40m\]"
-PINK="\[\e[35;40m\]"
-GREEN="\[\e[32;40m\]"
-ORANGE="\[\e[33;40m\]"
-CYAN="\[\e[0;36m\]"
-
-export PS1="[${ORANGE}\u:${CYAN}\W${DEFAULT}]${PINK}λ${DEFAULT} "
-
-# Add Haskell PATH to the main PATH
-export PATH=$HOME/Library/Haskell/bin:$PATH
-
-# ** globbing operator matches filenames and directories recursively
-shopt -s globstar
-
-# Preserve coloured output when piped to less
-alias less="less -FRX"
-
-# Always list directory first
-alias tree="tree --dirsfirst"
-
-# Sensible Ack pager
-alias ack='ack --pager="less -FRSX"'
-
-# Replace default vim with mvim
-alias vim='mvim -v'
-alias view='mvim -v -R'
-
-export EDITOR='mvim -v'
-
-# SVN Message Editor
-export SVN_EDITOR='mvim -v'
-
-# Source the z command: https://github.com/rupa/z
-. /usr/local/bin/z.sh
-
-# Quick filesystem navigation
-# http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html
-export MARKPATH=$HOME/.marks
-function jump { 
-    cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
-}
-function mark { 
-    mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
-}
-function unmark { 
-    rm -i "$MARKPATH/$1"
-}
-function marks {
-    \ls -l $MARKPATH | tail -n +2 | sed 's/  / /g' | cut -d' ' -f9- | awk -F ' -> ' '{printf "%-10s -> %s\n", $1, $2}'
-}
-function _completemarks {
-    local cur=${COMP_WORDS[COMP_CWORD]}
-    local marks=$(find $MARKPATH -type l | awk -F '/' '{print $NF}')
-    COMPREPLY=($(compgen -W '${marks[@]}' -- "$cur"))
-    return 0
-}
-complete -o default -o nospace -F _completemarks jump unmark
-

File .tmux.conf

-# tmux.conf
-#
-# This configuration file binds many vi- and vim-like bindings to the
-# appropriate tmux key bindings.  Note that for many key bindings there is no
-# tmux analogue.  This is intended for tmux 1.3, which handles pane selection
-# differently from the previous versions
-
-# Rebind prefix to Ctrl-s
-unbind C-b
-set -g prefix C-s
-
-# send the prefix to client inside window (ala nested sessions)
-bind-key a send-prefix
-
-# toggle last window like screen
-bind-key C-a last-window
-
-# split windows like vim
-# vim's definition of a horizontal/vertical split is reversed from tmux's
-bind s split-window -v
-bind v split-window -h
-
-# move around panes with hjkl, as one would in vim after pressing ctrl-w
-# bind h select-pane -L
-# bind j select-pane -D
-# bind k select-pane -U
-# bind l select-pane -R
-
-# resize panes like vim
-# feel free to change the number to however many lines you want to resize by, only
-# one at a time can be slow
-bind < resize-pane -L 5
-bind > resize-pane -R 5
-bind - resize-pane -D 5
-bind + resize-pane -U 5
-
-# Navigate Vim and Tmux splits, it detects if the current pane is running a vim instance,
-# and sends the C-* key to the vim instacne if it is, this requires modification/cooperation in .vimrc to work.
-# See: http://www.codeography.com/2013/06/19/navigating-vim-and-tmux-splits.html
-bind -n C-h run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
-bind -n C-j run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
-bind -n C-k run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
-bind -n C-l run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
-
-# bind : to command-prompt like vim, this is the default in tmux already
-bind : command-prompt
-
-# vi-style controls for copy mode
-setw -g mode-keys vi
-
-# Set status bar
-# set -g status-bg black
-# set -g status-fg white
-# set -g status-left ‘#[fg=yellow]#T’
-
-# Highlight active window
-# set-window-option -g window-status-current-bg red
-
-# default statusbar colors
-set-option -g status-utf8 on
-set-option -g status-fg colour15
-set-option -g status-bg black
-
-setw -g window-status-fg colour15
-setw -g window-status-bg black
-setw -g window-status-attr none
-
-setw -g window-status-current-fg black
-setw -g window-status-current-bg colour15
-setw -g window-status-current-attr bold
-setw -g window-status-current-format '(#[fg=red]#I#[default] #W#F)'
-setw -g window-status-format '(#[fg=yellow]#I#[default] #W#F)'
-
-set-option -g status-left ' ❐ #[fg=red]#S#[default] #I:#P#[default]▐'
-# set-option -g status-right '#▐ ⚡ #[fg=yellow]#(~/.DotFiles/bins/battery )#[default] ▐ ⌚ #[fg=blue]#(date "+%H:%M")#[default] ▐ #[fg=colour200]#(whoami)@#H#[default]'
-set-option -g status-right '▐ ⌚ #[fg=green]#(date "+%H:%M")#[default] ▐ #[fg=colour200]#(whoami)'
-
-# Allow tmux to access system clipboard
-# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
-set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/bash"
-# tmux copies content to the system clipboard
-# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
-
-# Emulate vi by using 'v' to begin selection/visual mode, and y to yank and exit selection mode
-bind-key -t vi-copy 'v' begin-selection
-bind-key -t vi-copy 'y' copy-selection
-
-set-window-option -g automatic-rename on
-
-# Set window notifications
-setw -g monitor-activity on
-set -g visual-activity on
-
-# Set 256 color terminal
-set -g default-terminal "xterm-256color"
-
-# Allow Mouse or Page-Up/Down scrolling
-set -g terminal-overrides 'xterm*:smcup@:rmcup@'
-
-# Refreshes the statusline every few seconds
-set -g status-interval 10
-set -g mouse-select-window on
-
-# Make the active pane more distinguishable
-set-option -g pane-active-border-fg red
-
-# Increase repeat time
-set -g repeat-time 1000

File bash/inputrc

View file
+set completion-ignore-case On
+
+# Allow vi style editing for command input
+set editing-mode vi
+# Shows what vi mode is currently on, only available bash 4.3+
+# ':' represents normal mode, '+' represents insert mode
+set show-mode-in-prompt on 
+
+# Custom key mappings
+$if mode=vi
+  set keymap vi-command
+  "gg": beginning-of-history
+  "G": end-of-history
+  set keymap vi-insert
+  # "jk": vi-movement-mode
+  "\C-p": history-search-backward
+  "\C-n": history-search-forward
+  "\C-l": clear-screen
+  "\C-f": edit-and-execute-command
+  "\C-a": beginning-of-line
+  "\C-e": end-of-line
+  "\C-k": kill-line
+

File bash/profile

View file
+
+# Colour ls output
+export CLICOLOR=1
+export CLICOLOR_FORCE=1
+# See LSCOLORS Generator: http://geoff.greer.fm/lscolors/
+export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
+export LS_COLORS="di=36;40:ln=1;;40:so=37;40:pi=1;;40:ex=35;40:bd=37;40:cd=37;40:su=37;40:sg=37;40:tw=32;40:ow=32;40:"
+
+# Colour bash prompt
+DEFAULT="\[\e[0;97m\]"
+LIGHT_GRAY="\[\e[37;40m\]"
+PINK="\[\e[35;40m\]"
+GREEN="\[\e[32;40m\]"
+ORANGE="\[\e[33;40m\]"
+CYAN="\[\e[0;36m\]"
+
+export PS1="[${ORANGE}\u:${CYAN}\W${DEFAULT}]${PINK}λ${DEFAULT} "
+
+# Add Haskell PATH to the main PATH
+export PATH=$HOME/Library/Haskell/bin:$PATH
+
+# ** globbing operator matches filenames and directories recursively
+shopt -s globstar
+
+# Preserve coloured output when piped to less
+alias less="less -FRX"
+
+# Always list directory first
+alias tree="tree --dirsfirst"
+
+# Sensible Ack pager
+alias ack='ack --pager="less -FRSX"'
+
+# Replace default vim with mvim
+alias vim='mvim -v'
+alias view='mvim -v -R'
+
+export EDITOR='mvim -v'
+
+# SVN Message Editor
+export SVN_EDITOR='mvim -v'
+
+# Source the z command: https://github.com/rupa/z
+. /usr/local/bin/z.sh
+
+# Quick filesystem navigation
+# http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html
+export MARKPATH=$HOME/.marks
+function jump { 
+    cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
+}
+function mark { 
+    mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
+}
+function unmark { 
+    rm -i "$MARKPATH/$1"
+}
+function marks {
+    \ls -l $MARKPATH | tail -n +2 | sed 's/  / /g' | cut -d' ' -f9- | awk -F ' -> ' '{printf "%-10s -> %s\n", $1, $2}'
+}
+function _completemarks {
+    local cur=${COMP_WORDS[COMP_CWORD]}
+    local marks=$(find $MARKPATH -type l | awk -F '/' '{print $NF}')
+    COMPREPLY=($(compgen -W '${marks[@]}' -- "$cur"))
+    return 0
+}
+complete -o default -o nospace -F _completemarks jump unmark
+

File tmux/tmux.conf

View file
+# tmux.conf
+#
+# This configuration file binds many vi- and vim-like bindings to the
+# appropriate tmux key bindings.  Note that for many key bindings there is no
+# tmux analogue.  This is intended for tmux 1.3, which handles pane selection
+# differently from the previous versions
+
+# Rebind prefix to Ctrl-s
+unbind C-b
+set -g prefix C-s
+
+# send the prefix to client inside window (ala nested sessions)
+bind-key a send-prefix
+
+# toggle last window like screen
+bind-key C-a last-window
+
+# split windows like vim
+# vim's definition of a horizontal/vertical split is reversed from tmux's
+bind s split-window -v
+bind v split-window -h
+
+# move around panes with hjkl, as one would in vim after pressing ctrl-w
+# bind h select-pane -L
+# bind j select-pane -D
+# bind k select-pane -U
+# bind l select-pane -R
+
+# resize panes like vim
+# feel free to change the number to however many lines you want to resize by, only
+# one at a time can be slow
+bind < resize-pane -L 5
+bind > resize-pane -R 5
+bind - resize-pane -D 5
+bind + resize-pane -U 5
+
+# Navigate Vim and Tmux splits, it detects if the current pane is running a vim instance,
+# and sends the C-* key to the vim instacne if it is, this requires modification/cooperation in .vimrc to work.
+# See: http://www.codeography.com/2013/06/19/navigating-vim-and-tmux-splits.html
+bind -n C-h run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
+bind -n C-j run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
+bind -n C-k run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
+bind -n C-l run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
+
+# bind : to command-prompt like vim, this is the default in tmux already
+bind : command-prompt
+
+# vi-style controls for copy mode
+setw -g mode-keys vi
+
+# Set status bar
+# set -g status-bg black
+# set -g status-fg white
+# set -g status-left ‘#[fg=yellow]#T’
+
+# Highlight active window
+# set-window-option -g window-status-current-bg red
+
+# default statusbar colors
+set-option -g status-utf8 on
+set-option -g status-fg colour15
+set-option -g status-bg black
+
+setw -g window-status-fg colour15
+setw -g window-status-bg black
+setw -g window-status-attr none
+
+setw -g window-status-current-fg black
+setw -g window-status-current-bg colour15
+setw -g window-status-current-attr bold
+setw -g window-status-current-format '(#[fg=red]#I#[default] #W#F)'
+setw -g window-status-format '(#[fg=yellow]#I#[default] #W#F)'
+
+set-option -g status-left ' ❐ #[fg=red]#S#[default] #I:#P#[default]▐'
+# set-option -g status-right '#▐ ⚡ #[fg=yellow]#(~/.DotFiles/bins/battery )#[default] ▐ ⌚ #[fg=blue]#(date "+%H:%M")#[default] ▐ #[fg=colour200]#(whoami)@#H#[default]'
+set-option -g status-right '▐ ⌚ #[fg=green]#(date "+%H:%M")#[default] ▐ #[fg=colour200]#(whoami)'
+
+# Allow tmux to access system clipboard
+# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
+set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/bash"
+# tmux copies content to the system clipboard
+# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
+
+# Emulate vi by using 'v' to begin selection/visual mode, and y to yank and exit selection mode
+bind-key -t vi-copy 'v' begin-selection
+bind-key -t vi-copy 'y' copy-selection
+
+set-window-option -g automatic-rename on
+
+# Set window notifications
+setw -g monitor-activity on
+set -g visual-activity on
+
+# Set 256 color terminal
+set -g default-terminal "xterm-256color"
+
+# Allow Mouse or Page-Up/Down scrolling
+set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+
+# Refreshes the statusline every few seconds
+set -g status-interval 10
+set -g mouse-select-window on
+
+# Make the active pane more distinguishable
+set-option -g pane-active-border-fg red
+
+# Increase repeat time
+set -g repeat-time 1000