mirror of
https://github.com/tildedotone/setup.git
synced 2026-11-04 13:05:38 +00:00
Initial commit
This commit is contained in:
commit
d2aec5aac0
2 files changed
+30
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# .bash_profile
|
||||
|
||||
if [ -f ~/.profile ]; then
|
||||
. ~/.profile
|
||||
fi
|
||||
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin directories
|
||||
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
if [[ -z "$TMUX" ]] ; then
|
||||
tmux has-session &> /dev/null
|
||||
if [ $? -eq 1 ]; then
|
||||
exec tmux new-session -s "one"
|
||||
exit
|
||||
else
|
||||
exec tmux attach -t "one"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
Reference in new issue
Block a user