]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bash_aliases
ssh_in launches terminal, sshes into machine
[max/dotfiles.git] / bash / .bash_aliases
index 0bab62d6bfee2521bee9a74d7e77947efa7fcb1b..952029c6af8df02214836da349205b8f7d54534f 100644 (file)
@@ -21,3 +21,13 @@ function la {
     fi
 }
 alias tmux='TERM=xterm-256color tmux'
+if [ -x /usr/bin/gvim ]; then 
+  alias vim='gvim -v'
+fi
+
+function ssh_in() {
+  i3-sensible-terminal -e \
+    ssh -o RemoteCommand="/bin/sh -c 'tmux has-session && exec tmux attach || exec tmux'" \
+    -t "$@"
+}