Switch default shell to tmux

This commit is contained in:
Jake Howard 2018-12-03 22:00:17 +00:00
parent b4035a460d
commit 46ac99bca9
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 26 additions and 6 deletions

View file

@ -306,10 +306,8 @@ live_config_reload: true
#
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
# Entries in `shell.args` are passed unmodified as arguments to the shell.
#shell:
# program: /bin/bash
# args:
# - --login
shell:
program: /sbin/tmux
# Key bindings
#

View file

@ -4,3 +4,17 @@ set -g history-limit 1000
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-window-option -g mouse on
set-window-option -g mode-keys vi
unbind C-b
set -g prefix ISO_Level3_Shift
bind ISO_Level3_Shift send-prefix
source-file "{{ home }}/.tmux/plugins/tmux-themepack/basic.tmuxtheme"
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g set-titles-string '#T: #W'
# auto even horizontal splits
set-hook -g after-split-window 'select-layout even-vertical'
set-hook -g after-kill-pane 'select-layout even-vertical'
set-hook -g pane-exited 'select-layout even-vertical'

View file

@ -26,7 +26,7 @@ autoload -Uz colors && colors
local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )"
export PROMPT="${ret_status} %{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%~%{$reset_color%}$ "
alias src="source $HOME/.zshrc"
alias src="source {{ home }}/.zshrc && tmux source {{ home }}/.tmux.conf"
{% include "base.sh" %}
{% include "environment.sh" %}

View file

@ -51,3 +51,4 @@ alias yolo="yaourt -Syyau --noconfirm"
alias sc="screenshot --to img"
alias clip="xclip -selection clipboard"
alias cl="climate"
alias tmux-cleanup="tmux list-sessions | grep -v attached | cut -d: -f1 | xargs -t -n1 tmux kill-session -t"

View file

@ -14,9 +14,16 @@
owner: root
group: root
- copy:
- template:
src: ./files/tmux.conf
dest: "{{ home }}/.tmux.conf"
mode: 0755
owner: "{{ user }}"
group: users
- git:
repo: git@github.com:jimeh/tmux-themepack.git
dest: "{{ home }}/.tmux/plugins/tmux-themepack"
force: true
become: true
become_user: "{{ user }}"