updating tm command to be a function
This commit is contained in:
parent
28643fdb8f
commit
e37481e868
1 changed files with 7 additions and 6 deletions
13
bash/.bashrc
13
bash/.bashrc
|
@ -38,9 +38,6 @@ if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
|
||||||
HAS_APT=1
|
HAS_APT=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -x `which gnome-shell >/dev/null 2>&1` ]]; then
|
|
||||||
HAS_GNOME=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# _
|
# _
|
||||||
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
||||||
|
@ -197,8 +194,6 @@ alias pc='python -ic "from __future__ import division; from math import *"'
|
||||||
# Start nano with line numbering no wrapping and autoindenting
|
# Start nano with line numbering no wrapping and autoindenting
|
||||||
alias nano='nano -ciw '
|
alias nano='nano -ciw '
|
||||||
|
|
||||||
# shortcut for tmux command
|
|
||||||
alias tm="tmux new-session -A -s main"
|
|
||||||
|
|
||||||
# emacsclient
|
# emacsclient
|
||||||
alias ec="emacsclient -n -c -a emacs"
|
alias ec="emacsclient -n -c -a emacs"
|
||||||
|
@ -257,9 +252,15 @@ function archive-and-encrypt {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# shortcut for tmux command
|
||||||
|
function tm {
|
||||||
|
tmux new-session -A -s main -x $(tput cols) -y $(tput lines)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# run mosh and tmux to a specific host
|
# run mosh and tmux to a specific host
|
||||||
function mt {
|
function mt {
|
||||||
mosh $1 -- tmux new-session -A -s main
|
mosh $1 -- tm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue