dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f971c0c71ecb458da7de4f54f6b0b0b8bd2db489
parent 224475b5f9786a798f13882760883864bf1a1968
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Mon, 23 Feb 2015 12:06:46 +0100

fix sshfs every time, improve lt and lT functions

Diffstat:
M.zshrc | 4++--
Mbin/iddqd-ssh | 6++++--
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -43,8 +43,8 @@ if [[ "$ARCH" != 'Darwin' ]]; then function open() { xdg-open $1 &> /dev/null &disown; } function say() { echo "$@" | festival --tts; } fi -function lt() { ls -ltrsa "$@" | tail; } -function lT() { ls -ltrsa "$@" | head; } +function lt() { ls -ltrsa "$@" | tail -n $(( $LINES - 10 )); } +function lT() { ls -ltrsa "$@" | head -n $(( $LINES - 9 )); } function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; } function fname() { find . -iname "*$@*"; } function sayfile() { festival --tts $@; } diff --git a/bin/iddqd-ssh b/bin/iddqd-ssh @@ -3,11 +3,13 @@ #if [[ "$(ifconfig | grep 10.17.8)" ]]; then if [[ "$(ip addr | grep 10.17.8)" ]]; then echo "On geo lan. Mounting sshfs and connecting directly..." - sshfs-iddqd.sh + #sshfs-iddqd.sh + sshfs-iddqd-fix.sh ssh adc@iddqd.nfit.au.dk -t 'bin/tmux-dev.sh' elif [[ "$(ip addr | grep 10.17.2)" ]]; then echo "On geo VPN. Mounting sshfs and connecting directly..." - sshfs-iddqd.sh + #sshfs-iddqd.sh + sshfs-iddqd-fix.sh ssh adc@iddqd.nfit.au.dk -t 'bin/tmux-dev.sh' else echo "Outside geo lan, connecting through fresh-horse..."