Sets ZSH as default Tmux shell

This commit is contained in:
Alicia Sykes 2021-02-11 17:51:04 +00:00
parent 9ee0b17c20
commit 80a385ad14
4 changed files with 2065 additions and 10 deletions

View File

@ -11,6 +11,9 @@ set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
# Set Shell
set -g default-shell /bin/zsh
# Set Theme
set -g @themepack 'powerline/default/cyan'

View File

@ -49,9 +49,6 @@ fi
# Set the correct local config file to use.
if [[ "$ZSH_TMUX_ITERM2" == "false" && -e "$ZSH_TMUX_CONFIG" ]]; then
export ZSH_TMUX_CONFIG
export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.extra.conf"
else
export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.only.conf"
fi
# Wrapper function for tmux.
@ -71,9 +68,7 @@ function _zsh_tmux_plugin_run() {
# If failed, just run tmux, fixing the TERM variable if requested.
if [[ $? -ne 0 ]]; then
if [[ "$ZSH_TMUX_FIXTERM" == "true" ]]; then
tmux_cmd+=(-f "$_ZSH_TMUX_FIXED_CONFIG")
elif [[ -e "$ZSH_TMUX_CONFIG" ]]; then
if [[ -e "$ZSH_TMUX_CONFIG" ]]; then
tmux_cmd+=(-f "$ZSH_TMUX_CONFIG")
fi
$tmux_cmd new-session

2057
zsh/antigen.zsh Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Specify directory for Antigen bundles
ADOTDIR=$HOME/.zsh/antigen-bundles
@ -16,8 +15,8 @@ antigen use oh-my-zsh
# Import local plugins
source $HOME/.zsh/plugins/colored-man-pages.zsh
source $HOME/.zsh/plugins/colorize.zsh
source $HOME/.zsh/plugins/docker-auto-complete.zsh
source $HOME/.zsh/plugins/interactive-cd.zsh
#source $HOME/.zsh/plugins/docker-auto-complete.zsh # Requires Docker
# Import local aliases
source $HOME/.zsh/aliases/ansible-aliases.zsh
@ -27,7 +26,6 @@ source $HOME/.zsh/aliases/lol-aliases.zsh
source $HOME/.zsh/aliases/npm-aliases.zsh
source $HOME/.zsh/aliases/tmux-aliases.zsh
# Add plugins to bundle
antigen bundles <<EOBUNDLES
command-not-found
@ -36,11 +34,13 @@ antigen bundles <<EOBUNDLES
psprint/zsh-navigation-tools
EOBUNDLES
# Enable autocomplete
autoload -Uz compinit
compinit
# Load the theme.
antigen theme romkatv/powerlevel10k
# I'm done- let's go
antigen apply