From fd88eb94551ebc8baa4db2eefb8eab93e23454db Mon Sep 17 00:00:00 2001 From: PandaCoderPL Date: Wed, 10 Nov 2021 20:01:30 +0000 Subject: [PATCH] Add code for starting Tmux to Bash Config Signed-off-by: PandaCoderPL --- CHANGELOG.md | 4 ++++ VERSION | 2 +- home/.bashrc | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9747679..5c369f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.1] - 2021-11-10 +### Added +- Code for starting Tmux to [Bash Config](home/.bashrc) + ## [1.4.0] - 2021-11-10 ### Added - [Tmux Config](home/.tmux.conf) diff --git a/VERSION b/VERSION index 88c5fb8..347f583 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.0 +1.4.1 diff --git a/home/.bashrc b/home/.bashrc index b97d2df..6c63e7d 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -1,3 +1,13 @@ +# Tmux +if [[ -z "${TMUX}" ]]; then + if ! tmux has-session; then + tmux new-session + else + tmux new-window + fi + exit +fi + # Config alias bashconfig='vim ${HOME}/.bashrc' alias gitconfig='git config --global --edit'