Add code for starting Tmux to Bash Config
Signed-off-by: PandaCoderPL <git@pandacoderpl.anonaddy.me>
This commit is contained in:
parent
d514d11153
commit
fd88eb9455
|
@ -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)
|
||||
|
|
10
home/.bashrc
10
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'
|
||||
|
|
Loading…
Reference in New Issue