Switch default shell to tmux
This commit is contained in:
parent
b4035a460d
commit
46ac99bca9
5 changed files with 26 additions and 6 deletions
|
@ -306,10 +306,8 @@ live_config_reload: true
|
||||||
#
|
#
|
||||||
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
# 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.
|
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
||||||
#shell:
|
shell:
|
||||||
# program: /bin/bash
|
program: /sbin/tmux
|
||||||
# args:
|
|
||||||
# - --login
|
|
||||||
|
|
||||||
# Key bindings
|
# Key bindings
|
||||||
#
|
#
|
||||||
|
|
|
@ -4,3 +4,17 @@ set -g history-limit 1000
|
||||||
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||||
set-window-option -g mouse on
|
set-window-option -g mouse on
|
||||||
set-window-option -g mode-keys vi
|
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'
|
||||||
|
|
|
@ -26,7 +26,7 @@ autoload -Uz colors && colors
|
||||||
local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )"
|
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%}$ "
|
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 "base.sh" %}
|
||||||
{% include "environment.sh" %}
|
{% include "environment.sh" %}
|
||||||
|
|
|
@ -51,3 +51,4 @@ alias yolo="yaourt -Syyau --noconfirm"
|
||||||
alias sc="screenshot --to img"
|
alias sc="screenshot --to img"
|
||||||
alias clip="xclip -selection clipboard"
|
alias clip="xclip -selection clipboard"
|
||||||
alias cl="climate"
|
alias cl="climate"
|
||||||
|
alias tmux-cleanup="tmux list-sessions | grep -v attached | cut -d: -f1 | xargs -t -n1 tmux kill-session -t"
|
||||||
|
|
|
@ -14,9 +14,16 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- copy:
|
- template:
|
||||||
src: ./files/tmux.conf
|
src: ./files/tmux.conf
|
||||||
dest: "{{ home }}/.tmux.conf"
|
dest: "{{ home }}/.tmux.conf"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
group: users
|
group: users
|
||||||
|
|
||||||
|
- git:
|
||||||
|
repo: git@github.com:jimeh/tmux-themepack.git
|
||||||
|
dest: "{{ home }}/.tmux/plugins/tmux-themepack"
|
||||||
|
force: true
|
||||||
|
become: true
|
||||||
|
become_user: "{{ user }}"
|
||||||
|
|
Loading…
Reference in a new issue