Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run tmux on startup

# .bashrc
just above your aliases section

if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
  exec tmux
fi

# For more info | https://unix.stackexchange.com/questions/43601/how-can-i-set-my-default-shell-to-start-up-tmux
Comment

PREVIOUS NEXT
Code Example
Shell :: update all snap packages 
Shell :: speed up video with ffmpeg 
Shell :: how to find host name in linux 
Shell :: ubuntu get public ip 
Shell :: visualize git tree branches in repo 
Shell :: bash compare two lists of checksums 
Shell :: install jq windows 
Shell :: telegram desktop for linux 
Shell :: change docker folder windows 
Shell :: create git aliases 
Shell :: git remoev .DS_Store 
Shell :: ubuntu set sudoers to use vim 
Shell :: shell shortcuts 
Shell :: git stash all changes 
Shell :: awk count if 
Shell :: kubectl exec 
Shell :: cmd stop process on port 
Shell :: copy first 10 lines of a file to another file in unix 
Shell :: apache show active sites 
Shell :: list files on hadoop file system 
Shell :: spotify linux 
Shell :: npm_config_node_gyp 
Shell :: adonis list routes 
Shell :: pm2 describe process 
Shell :: windows view processes command line 
Shell :: Vagrant - Remove all boxes 
Shell :: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 
Shell :: update prisma latest version 
Shell :: bash concatenate gzipped files 
Shell :: bash uppercase string 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =