From 67c0e448276e46fafd47db73dfc0031786a18dc0 Mon Sep 17 00:00:00 2001 From: binary Date: Mon, 2 Nov 2020 13:20:53 +0100 Subject: Refactor utils and hostname to common role --- roles/common/files/tmux.conf | 24 ++++++++++++++++++++++++ roles/common/files/zshrc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 roles/common/files/tmux.conf create mode 100644 roles/common/files/zshrc (limited to 'roles/common/files') diff --git a/roles/common/files/tmux.conf b/roles/common/files/tmux.conf new file mode 100644 index 0000000..2816065 --- /dev/null +++ b/roles/common/files/tmux.conf @@ -0,0 +1,24 @@ +# /etc/tmux.conf ~~ rgoncalves.se infrastructure + +# keybinds +unbind C-b +set -g prefix ` +bind-key n last-window +bind-key m send-prefix +bind-key ` last-window +bind-key e send-prefix + +# options +set -sg escape-time 0 +set -g mouse off +set -g default-terminal "screen-256color" +set -g status-right-length 50 +set -g status-left-length 20 +set-option -g history-limit 5000 +setw -g mode-keys vi + +# statusbar +set -g status-position bottom +set -g status-bg colour255 +set -g status-fg colour235 + diff --git a/roles/common/files/zshrc b/roles/common/files/zshrc new file mode 100644 index 0000000..7635057 --- /dev/null +++ b/roles/common/files/zshrc @@ -0,0 +1,30 @@ +# /etc/zshrc configuration ~~ rgoncalves.se infrastructure + +# export environment variables +export TERM=xterm-256color +export LANG=en_US.UTF-8 + +# zsh options +CASE_SENSITIVE="false" + +# autocomplete +autoload -U history-search-end +zle -N history-beginning-search-backward-end history-search-end +zle -N history-beginning-search-forward-end history-search-end +bindkey "^[[A" history-beginning-search-backward-end +bindkey "^[[B" history-beginning-search-forward-end +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word +bindkey "\e[3~" delete-char +bindkey '^[[Z' reverse-menu-complete + +zstyle ':completion:*' completer _complete +zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' +autoload -Uz compinit +compinit -u + +# aliases +alias cdd="cd .." + +# prompt +PROMPT="%B %n@%m %~ %# %b" -- cgit v1.2.3