adding tmux config
parent
738a392685
commit
6808f7a62d
@ -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…
Reference in New Issue