aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/setup_utils/files/tmux.conf26
-rw-r--r--roles/setup_utils/files/zshrc21
-rw-r--r--roles/setup_utils/tasks/main.yml52
-rw-r--r--roles/update/files/installurl2
4 files changed, 101 insertions, 0 deletions
diff --git a/roles/setup_utils/files/tmux.conf b/roles/setup_utils/files/tmux.conf
new file mode 100644
index 0000000..961a855
--- /dev/null
+++ b/roles/setup_utils/files/tmux.conf
@@ -0,0 +1,26 @@
+unbind C-b
+set -g prefix `
+
+
+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
+
+
+set -g status-position bottom
+set -g status-bg colour214
+set -g status-fg colour232
+set -g status-right '#[fg=colour232,bg=colour214,bold] %d/%m #[fg=colour232,bg=colour214,bold] %H:%M:%S '
+setw -g window-status-current-format '#[fg=colour214,bg=colour255]:#I:#W#[fg=colour50]#F '
+setw -g window-status-format ' #I#[fg=colour232]:#[fg=colour255]#W#[fg=colour232]#F '
+
+
+bind-key n last-window
+bind-key m send-prefix
+bind-key ` last-window
+bind-key e send-prefix
+
diff --git a/roles/setup_utils/files/zshrc b/roles/setup_utils/files/zshrc
new file mode 100644
index 0000000..ed0a87b
--- /dev/null
+++ b/roles/setup_utils/files/zshrc
@@ -0,0 +1,21 @@
+export TERM=xterm-256color
+export LANG=en_US.UTF-8
+
+CASE_SENSITIVE="false"
+
+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
+
+PROMPT="%B %n@%m %# %b"
diff --git a/roles/setup_utils/tasks/main.yml b/roles/setup_utils/tasks/main.yml
new file mode 100644
index 0000000..446ec46
--- /dev/null
+++ b/roles/setup_utils/tasks/main.yml
@@ -0,0 +1,52 @@
+
+# =========================================================================== #
+# __ __ _ __
+# _________ / /__ __ __/ /_(_) /____
+# / ___/ __ \/ / _ \ / / / / __/ / / ___/
+# / / / /_/ / / __/ / /_/ / /_/ / (__ )
+# /_/ \____/_/\___(_) \__,_/\__/_/_/____/
+#
+# =========================================================================== #
+
+---
+- name: Check installation of zsh
+ package:
+ name: "{{ package_zsh }}"
+ state: present
+
+- name: Check installation of neovim
+ package:
+ name: "{{ package_neovim }}"
+ state: present
+
+- name: Check installation of tmux
+ package:
+ name: "{{ package_tmux }}"
+ state: present
+ ignore_errors: yes
+
+- name: Copy zshrc configuration file
+ copy:
+ src: zshrc
+ dest: /etc/zshrc
+ owner: root
+ group: "{{ group_root }}"
+ mode: 0644
+
+- name: Copy tmux configuration file
+ copy:
+ src: tmux.conf
+ dest: /etc/tmux.conf
+ owner: root
+ group: "{{ group_root }}"
+ mode: 0644
+
+- name: Retrieve all valid users for zsh
+ shell: awk -F ":" '{ if($3 > 999 && $3 < 16000) { print $1 }}' /etc/passwd
+ register: valid_users_shell
+
+- name: Change shell for all valid users to zsh
+ user:
+ name: "{{ item }}"
+ shell: /usr/local/bin/zsh
+ loop: "{{ valid_users_shell.stdout_lines }}"
diff --git a/roles/update/files/installurl b/roles/update/files/installurl
new file mode 100644
index 0000000..71117ea
--- /dev/null
+++ b/roles/update/files/installurl
@@ -0,0 +1,2 @@
+https://mirror.ungleich.ch/pub/OpenBSD
+
remember that computers suck.