From 5b7fee8860acad725b682503a490f354726f9c8d Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Wed, 26 Oct 2022 20:17:03 -0400 Subject: Launch Tmux from zshrc to prevent issues --- .config/shells/zsh/.zsh_history | 12 +-- .../4E794928-D5D5-40B7-8255-C44AC4E23992.history | 100 --------------------- .../4E794928-D5D5-40B7-8255-C44AC4E23992.session | 1 - .config/shells/zsh/.zshrc | 4 + 4 files changed, 10 insertions(+), 107 deletions(-) delete mode 100644 .config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.history delete mode 100644 .config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.session (limited to '.config/shells/zsh') diff --git a/.config/shells/zsh/.zsh_history b/.config/shells/zsh/.zsh_history index 68969ac..c5f8f92 100644 --- a/.config/shells/zsh/.zsh_history +++ b/.config/shells/zsh/.zsh_history @@ -1,9 +1,3 @@ -cd Downloads -ls -git clone https://github.com/craftzdog/craftzdog-homepage.git nextjs-test -cd nextjs-test -ls -npm install npm run start npm run build npm run start @@ -98,3 +92,9 @@ java Turtle.main sudo killall Dock e ./test +tmux +exit +c +cd shells +v zsh/zshrc +exit diff --git a/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.history b/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.history deleted file mode 100644 index 68969ac..0000000 --- a/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.history +++ /dev/null @@ -1,100 +0,0 @@ -cd Downloads -ls -git clone https://github.com/craftzdog/craftzdog-homepage.git nextjs-test -cd nextjs-test -ls -npm install -npm run start -npm run build -npm run start -ls -cd pages -ls -vim index.js -.. -npm run start -theme -theme -speedtest -serv -exit -go run test.go -ls -exit -micro test.go -micro test.go -set -o emacs -exit -neofetch -serv -edit -ls -rm test.go -ls -exit -m -exit -brew install tilde -serv -bc -ls -m test.go -micro -plugin install fzf filemanager snippets -m -g -ls -cd jed -ls -cd src -m -micro -micro .. -cd .. -ls -micro src -micro -cd src -m jed.java -m jed.java -brew install --cask iterm2 -cask -dw -wget https://raw.githubusercontent.com/aseom/dotfiles/master/osx/iterm2/papercolor-light.itermcolors -ls -rm iterm2colors -rm papercolor-light.itermcolors -ls -g -ls -cd jed -ls -cd src -ls -m jed.java -brew install --cask iterm2 -g -ls -cd jed/src -m jed.java -c -ls -cd micro -ls -ls -mkdir colorscheme -mv colorscheme colorschemes -cd colorschemes -wget https://raw.githubusercontent.com/zyedidia/micro/master/runtime/colorschemes/dukelight-tc.micro -m -ls -m -serv -g -ls -cd Turtle -ls -java Turtle.main -/Users/jmm/Documents/git/Turtle/build/Turtle ; exit; -sudo killall Dock -e -./test diff --git a/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.session b/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.session deleted file mode 100644 index 7d59d95..0000000 --- a/.config/shells/zsh/.zsh_sessions/4E794928-D5D5-40B7-8255-C44AC4E23992.session +++ /dev/null @@ -1 +0,0 @@ -echo Restored session: "$(/bin/date -r 1652756563)" diff --git a/.config/shells/zsh/.zshrc b/.config/shells/zsh/.zshrc index 75f7f16..d2b735d 100644 --- a/.config/shells/zsh/.zshrc +++ b/.config/shells/zsh/.zshrc @@ -1,3 +1,7 @@ +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then + exec tmux +fi + source ~/.zprofile export SHELLDIR="$XDG_CONFIG_HOME/shells" export ZSH="$SHELLDIR/zsh" -- cgit v1.2.3