Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752309
D3226.id8282.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
7 KB
Referenced Files
None
Subscribers
None
D3226.id8282.diff
View Options
diff --git a/roles/core/userland-home/files/dorianwinty/.tmux.conf b/roles/core/userland-home/files/dorianwinty/.tmux.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/userland-home/files/dorianwinty/.tmux.conf
@@ -0,0 +1,61 @@
+# -------------------------------------------------------------
+# tmux minimal configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/core/userland-home/files/dorianwinty/.tmux.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# General settings
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+set-option -g default-shell /usr/local/bin/zsh
+set -g prefix C-a
+set -g status-right '#h — %Y-%m-%d %H:%M '
+
+# -------------------------------------------------------------
+# Resize shortcut keys
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+bind < resize-pane -L 1
+bind > resize-pane -R 1
+bind - resize-pane -D 1
+bind + resize-pane -U 1
+
+# -------------------------------------------------------------
+# Mouse mode support
+#
+# :: Enable mouse mode: ^B m
+# :: Disable mouse mode: ^B M
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+bind m \
+ set -g mode-mouse on \;\
+ set -g mouse-resize-pane on \;\
+ set -g mouse-select-pane on \;\
+ set -g mouse-select-window on \;\
+ display 'Mouse mode ON'
+
+bind M \
+ set -g mode-mouse off \;\
+ set -g mouse-resize-pane off \;\
+ set -g mouse-select-pane off \;\
+ set -g mouse-select-window off \;\
+ display 'Mouse mode OFF'
+
+# -------------------------------------------------------------
+# Ensure current path is propagated
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+bind '"' split-window -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
+bind c new-window -c "#{pane_current_path}"
diff --git a/roles/core/userland-home/files/dorianwinty/.zshrc b/roles/core/userland-home/files/dorianwinty/.zshrc
new file mode 100644
--- /dev/null
+++ b/roles/core/userland-home/files/dorianwinty/.zshrc
@@ -0,0 +1,170 @@
+# -------------------------------------------------------------
+# Zsh configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Table of contents
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+#
+# :: Completions
+# :: History
+# :: Prompt
+# :: Background jobs
+# :: Compatibility with csh
+# :: Environment
+# :: SSH
+# :: Keys bindings
+# :: External modules
+# :: VCS
+# :: Aliases for salt-wrapper
+# :: Misc aliases
+#
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Completions
+#
+# This section has been prepared with compinstall
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
+zstyle ':completion:*' completions 1
+zstyle ':completion:*' glob 1
+zstyle ':completion:*' matcher-list ''
+zstyle ':completion:*' max-errors 3
+zstyle ':completion:*' substitute 1
+
+autoload -Uz compinit
+compinit
+
+setopt extendedglob
+setopt no_nomatch
+
+# -------------------------------------------------------------
+# History
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+HISTFILE=~/.histfile
+HISTSIZE=10000
+SAVEHIST=10000
+setopt appendhistory
+
+# -------------------------------------------------------------
+# Prompt
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+prompt='%n [%B%/%b ] '
+alias ls='ls --color'
+
+# -------------------------------------------------------------
+# Background jobs
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+setopt notify
+
+# -------------------------------------------------------------
+# Compatibility with csh
+#
+# makecheck / https://news.ycombinator.com/item?id=4201636
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+setenv () {
+ if [ "x$1" = "x" ] ; then
+ echo "$0: environment variable name required" >&2
+ elif [ "x$2" = "x" ] ; then
+ echo "$0: environment variable value required" >&2
+ else
+ export $1=$2
+ fi
+}
+
+unsetenv () {
+ if [ "x$1" = "x" ] ; then
+ echo "$0: environment variable name required" >&2
+ else
+ unset $1
+ fi
+}
+
+# -------------------------------------------------------------
+# Environment
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+[[ $TERM == screen ]] && TERM=screen-256color
+[[ $TERM == xterm ]] && TERM=xterm-256color
+
+BLOCKSIZE=K
+
+EDITOR=nano
+
+PAGER=less
+LESS=eiMqXR
+
+
+# -------------------------------------------------------------
+# Keys bindings
+#
+# https://web.archive.org/web/*/http://zshwiki.org/home/zle/bindkeys
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+bindkey -e
+
+autoload zkbd
+
+source ~/.zkbd/$TERM-:0
+
+autoload -U up-line-or-beginning-search
+autoload -U down-line-or-beginning-search
+zle -N up-line-or-beginning-search
+zle -N down-line-or-beginning-search
+
+export WORDCHARS='*?_[]~=&;!#$%^(){}'
+
+[[ -n "$key[Home]" ]] && bindkey -- "$key[Home]" beginning-of-line
+[[ -n "$key[End]" ]] && bindkey -- "$key[End]" end-of-line
+[[ -n "$key[Insert]" ]] && bindkey -- "$key[Insert]" overwrite-mode
+[[ -n "$key[Backspace]" ]] && bindkey -- "$key[Backspace]" backward-delete-char
+[[ -n "$key[Delete]" ]] && bindkey -- "$key[Delete]" delete-char
+[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
+[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
+[[ -n "$key[Left]" ]] && bindkey -- "$key[Left]" backward-char
+[[ -n "$key[Right]" ]] && bindkey -- "$key[Right]" forward-char
+
+# -------------------------------------------------------------
+# VCS
+#
+# :: vcs_info prompt
+#
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+setopt prompt_subst
+autoload -Uz vcs_info
+
+zstyle ':vcs_info:*' actionformats \
+ '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
+zstyle ':vcs_info:*' formats \
+ '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
+
+zstyle ':vcs_info:*' enable git cvs svn
+
+vcs_info_wrapper() {
+ vcs_info
+ if [ -n "$vcs_info_msg_0_" ]; then
+ echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"
+ fi
+}
+RPROMPT=$'$(vcs_info_wrapper)'
+
+# -------------------------------------------------------------
+# Misc aliases
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+alias cd..='cd ..'
+alias cd...='cd ../..'
+alias cd....='cd ../../..'
+
+alias h=history
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 18:12 (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250913
Default Alt Text
D3226.id8282.diff (7 KB)
Attached To
Mode
D3226: Add dorianwinty home configuration
Attached
Detach File
Event Timeline
Log In to Comment