diff --git a/modules/fish/default.nix b/modules/fish/default.nix index 86489d7..37d41d7 100644 --- a/modules/fish/default.nix +++ b/modules/fish/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ ... }: { programs.fish = { @@ -8,6 +8,9 @@ fish_greeting = "fortune -a"; localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1"; publicip = "curl -4 ifconfig.me"; + kill_tunnels = /* fish */ '' + ps -o pid,command | grep "^[0-9]\{4,5\} ssh -fNL" | awk '{print $1}' | xargs kill -9 + ''; dev_projects = /* fish */ '' if test "$hn" = "dnsc-work" begin