Update .bashrc, tmux.sh, and .profile

This commit is contained in:
mrjohndowe 2021-11-30 10:37:42 -07:00
parent 66c81d1b65
commit 3db08fc6a5
3 changed files with 19 additions and 12 deletions

14
.bashrc
View File

@ -26,10 +26,10 @@ shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
@ -77,8 +77,8 @@ esac
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
@ -86,12 +86,12 @@ if [ -x /usr/bin/dircolors ]; then
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alhF'
#alias la='ls -A'
#alias l='ls -CF'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like

View File

@ -6,12 +6,13 @@ session="workspace"
# Check if the session exists, discarding output
# We can check $? for the exit status (zero for success, non-zero for failure)
tmux has-session -t $session 2>/dev/null
#tmux has-session -t $session 2>/dev/null
tmux new-session -A -s $session
if [ $? != 0 ]; then
#if [ $? != 0 ]; then
# Set up your session
sudo tmux new - $session;
fi
# sudo tmux new -s $session;
#fi
# Attach to created session
tmux attach-session -t $session
#tmux attach-session -t $session

View File

@ -25,3 +25,9 @@ fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
#sudo ./.doweFiles/tmux.sh
#sleep 30
session="workspace"
tmux new-session -A -s $session