Add code for starting Tmux to Bash Config

Signed-off-by: PandaCoderPL <git@pandacoderpl.anonaddy.me>
This commit is contained in:
PandaCoderPL 2021-11-10 20:01:30 +00:00
parent d514d11153
commit fd88eb9455
Signed by: PandaCoderPL
GPG Key ID: 101E7BD8DF5C987B
3 changed files with 15 additions and 1 deletions

View File

@ -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/), 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). 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 ## [1.4.0] - 2021-11-10
### Added ### Added
- [Tmux Config](home/.tmux.conf) - [Tmux Config](home/.tmux.conf)

View File

@ -1 +1 @@
1.4.0 1.4.1

View File

@ -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 # Config
alias bashconfig='vim ${HOME}/.bashrc' alias bashconfig='vim ${HOME}/.bashrc'
alias gitconfig='git config --global --edit' alias gitconfig='git config --global --edit'