summaryrefslogtreecommitdiff
path: root/functions/sec.fish
blob: 4f87d4e657b0ad3431fb95c272138db0edc77a28 (plain)
1
2
3
4
5
6
7
8
9
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