summaryrefslogtreecommitdiff
path: root/functions/sec.fish
blob: abf5edc71946f0a0f7e71f7556da0da7d4d68361 (plain)
1
2
3
4
5
6
7
8
function sec
    set t (lsof -c ssh -i :8886 -a -Fp | grep "^p" | head -n 1 | cut -c 2-)
    if [ -n "$t" -a "$t" != "
" ]
        kill $t
    end
    ssh achessh@37.59.109.240 -p 21 -D 8886 -fN
end