adding tmux config

master
chatton 2 years ago
parent 738a392685
commit 6808f7a62d

@ -2,6 +2,7 @@
- name: Setup Dev Environment - name: Setup Dev Environment
hosts: localhost hosts: localhost
become: yes become: yes
become_user: cianhatton become_user: root
roles: roles:
- configure_git - git
- tmux

@ -33,4 +33,3 @@
block: | block: |
[url "ssh://git@github.com/"] [url "ssh://git@github.com/"]
insteadOf = https://github.com/ insteadOf = https://github.com/

@ -1,6 +0,0 @@
---
packages:
- sudo
- tmux
- vim
- npm

@ -1,11 +0,0 @@
---
- name: Update Packages
ansible.builtin.apt:
upgrade: dist
update_cache: true
- name: Install desired packages
ansible.builtin.apt:
pkg:
- foo
- foo-tools

@ -0,0 +1,29 @@
# Send prefix
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Mouse mode
setw -g mouse on
# Set easier window split keys
bind-key v split-window -h
bind-key h split-window -v
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"

@ -0,0 +1,11 @@
---
- name: Install tmux packages
ansible.builtin.apt:
pkg:
- tmux
- name: Copy tmux conf.
ansible.builtin.copy:
src: tmux.conf
dest: /home/cianhatton/.tmux.conf
mode: '0644'

@ -0,0 +1,5 @@
---
- name: Update Packages
ansible.builtin.apt:
upgrade: dist
cache_valid_time: 3600

@ -0,0 +1,10 @@
---
#- name: Update Packages
# ansible.builtin.apt:
# upgrade: dist
# cache_valid_time: 3600
- name: Install vim packages
ansible.builtin.apt:
pkg:
- vim
Loading…
Cancel
Save