From bb814c7155108eb431e601f060e039dfaa0d29e3 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 15 Jul 2014 20:19:57 +0200 Subject: [PATCH 1/2] Handy tmux alias for resizing/taking over a session --- .bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index e9e866f..b54ab77 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -41,6 +41,10 @@ alias so=git #20140521 force 256 colours in tmux alias tmux='tmux -2' +# 20140715 you can connect to your session normally, and if you are bothered by +# another session that forced down your tmux window size you can simply call +alias takeover="tmux detach -a" + function fuck() { if killall -9 "$2"; then echo ; echo " (╯°□°)╯︵$(echo "$2"|toilet -f term -F rotate)"; echo From d338d7f3b8de9f221bc9a9e5c10e32be1d279ddd Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 15 Jul 2014 20:21:03 +0200 Subject: [PATCH 2/2] Comments are better readable with a space; some cleanup --- .bash_aliases | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index b54ab77..1be69e6 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -6,8 +6,6 @@ alias ll='ls -la' # append history instead of overwriting: shopt -s histappend -#alias findphp='find . -name "*php" | xargs grep' -#alias findphp='find . -name "*.php" | xargs grep -i' alias findphp='find . -name "*.php" | xargs grep' alias findjs='find . -name "*.js" | xargs grep' alias findcss='find . -name "*.css" | xargs grep' @@ -21,13 +19,13 @@ alias notes='vim ~/mydocs/notes/notes.txt' alias higgs='ssh higgs' alias medusa='ssh medusa' -#20120714 +# 20120714 alias gm='gnome-mplayer' -#20131124 +# 20131124 alias fucking='sudo' -#20140110 +# 20140110 alias such=git alias very=git alias wow='git status' @@ -38,7 +36,7 @@ alias so=git # so rebase # so diff -#20140521 force 256 colours in tmux +# 20140521 force 256 colours in tmux alias tmux='tmux -2' # 20140715 you can connect to your session normally, and if you are bothered by @@ -51,7 +49,7 @@ function fuck() { fi } -#20140614 wrapper around bpython to load the virtualenv's python path +# 20140614 wrapper around bpython to load the virtualenv's python path bpython() { if test -n "$VIRTUAL_ENV" then