Every time I try to start zsh
inside of tmux
it crashes wwith
zsh-newuser-install: startup files exist, aborting
It worked flawless yesterday night, and suddenly this morning nothing works...
I'm starting tmux with this line as the first in .zshrc
:
if [ "$TMUX" = "" ]; then tmux; fi
Thanks!
My zshrc
file:
https://github.com/Richard87/oh-my-zsh/blob/master/templates/zshrc.zsh-template
EDIT
It suddenly started working again... I don't know what changed, or what is wrong... scratch that, it stopped working again
EDIT #2
On the same computer, it works for root user, but not my main user (the .zshrc files are exactly the same, the only different is that my own user have a custom tmux config file:
# set Zsh as your default Tmux shell
set-option -g default-shell /bin/zsh
# Tmux should be pretty, we need 256 color for that
set -g default-terminal "screen-256color"
# Tmux uses a 'control key', let's set it to 'Ctrl-a'
# Reason: 'Ctrl-a' is easier to reach than 'Ctrl-b'
set -g prefix C-a
unbind C-b
# command delay? We don't want that, make it short
set -sg escape-time 1
# Set the numbering of windows to go from 1 instead
# of 0 - silly programmers :|
set-option -g base-index 1
setw -g pane-base-index 1
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Getting interesting now, we use the vertical and horizontal
# symbols to split the screen
bind | split-window -h
bind - split-window -v