|
@@ -21,8 +21,10 @@ if [ ! -z "$EXA_PATH" ]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
# Platform agnostic aliases
|
|
# Platform agnostic aliases
|
|
-alias tmuxa="tmux attach -t $1"
|
|
|
|
-alias tmuxl="tmux ls"
|
|
|
|
|
|
+export TMUX_PATH=$(which tmux --skip-alias)
|
|
|
|
+alias tmuxn="$TMUX_PATH new -s $1"
|
|
|
|
+alias tmuxa="$TMUX_PATH attach -t $1"
|
|
|
|
+alias tmuxl="$TMUX_PATH ls"
|
|
alias tmuxq="echo $TMUX"
|
|
alias tmuxq="echo $TMUX"
|
|
|
|
|
|
alias httpserver="python -m SimpleHTTPServer"
|
|
alias httpserver="python -m SimpleHTTPServer"
|
|
@@ -36,7 +38,6 @@ case $(hostname) in
|
|
# Mac aliases
|
|
# Mac aliases
|
|
alias shorten-ps1="PS1='λ > '"
|
|
alias shorten-ps1="PS1='λ > '"
|
|
alias default-ps1='PS1="\w λ > \[$(tput sgr0)\]"'
|
|
alias default-ps1='PS1="\w λ > \[$(tput sgr0)\]"'
|
|
- alias tmuxn="tmux new -s $1"
|
|
|
|
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs"
|
|
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs"
|
|
|
|
|
|
# PATH setups
|
|
# PATH setups
|
|
@@ -58,7 +59,7 @@ case $(hostname) in
|
|
|
|
|
|
export PS1="[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ "
|
|
export PS1="[\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]]\$ "
|
|
alias start_od="rclone --vfs-cache-mode writes mount ipconedrive: /home/watonsi/OneDrive/"
|
|
alias start_od="rclone --vfs-cache-mode writes mount ipconedrive: /home/watonsi/OneDrive/"
|
|
- alias tmux="systemd-run --scope --user tmux"
|
|
|
|
|
|
+ alias tmuxn="systemd-run --scope --user tmux new -s $1"
|
|
|
|
|
|
# function to set terminal title
|
|
# function to set terminal title
|
|
function set-title() {
|
|
function set-title() {
|