diff --git a/configs/default.nix b/configs/default.nix index af1dcdd..50e52e5 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -195,38 +195,39 @@ in environment.shellAliases = let path = makeBinPath [ pkgs.which pkgs.coreutils pkgs.findutils ]; - wcd = pkgs.writeDash "wcd" '' - export PATH=${path} + wcd = pkgs.writers.writeDash "wcd" '' + PATH=${path} cd "$(readlink "$(which --skip-alias "$1")" | xargs dirname)/.." ''; - where = pkgs.writeDash "where" '' - export PATH=${path} + where = pkgs.writers.writeDash "where" '' + PATH=${path} readlink "$(which --skip-alias "$1")" | xargs dirname ''; - take = pkgs.writeDash "take" '' + take = pkgs.writers.writeDash "take" '' mkdir "$1" && cd "$1" ''; in { - clipboard = "${pkgs.xclip}/bin/xclip -se c"; - o = "${pkgs.xdg_utils}/bin/xdg-open"; - tmux = "${pkgs.tmux}/bin/tmux -2"; - ip = "${pkgs.iproute}/bin/ip -c"; - ns = "nix-shell --run zsh"; - nixi = "nix repl ''"; - rm = "rm -i"; - cp = "cp -i"; - mv = "mv -i"; - l = "${pkgs.exa}/bin/exa -s type -a"; - ls = "${pkgs.exa}/bin/exa -s type"; - ll = "${pkgs.exa}/bin/exa -s type -l"; - la = "${pkgs.exa}/bin/exa -s type -la"; - dig = "dig +short"; - wcd = "source ${wcd}"; - where = "source ${where}"; - take = "source ${take}"; - tree = "${pkgs.exa}/bin/exa --tree"; - cat = "${pkgs.bat}/bin/bat --style=plain"; "ix.io" = "${pkgs.curl}/bin/curl -F 'f:1=<-' ix.io"; + cat = "${pkgs.bat}/bin/bat --style=plain"; + clipboard = "${pkgs.xclip}/bin/xclip -se c"; + cp = "cp -i"; + dig = "dig +short"; + ip = "${pkgs.iproute}/bin/ip -c"; + l = "${pkgs.exa}/bin/exa -s type -a"; + la = "${pkgs.exa}/bin/exa -s type -la"; + ll = "${pkgs.exa}/bin/exa -s type -l"; + ls = "${pkgs.exa}/bin/exa -s type"; + mv = "mv -i"; + nixi = "nix repl ''"; + ns = "nix-shell --run zsh"; + o = "${pkgs.xdg_utils}/bin/xdg-open"; + rm = "rm -i"; + take = "source ${take}"; + tmux = "${pkgs.tmux}/bin/tmux -2"; + tree = "${pkgs.exa}/bin/exa --tree"; + wcd = "source ${wcd}"; + weechat = "${pkgs.openssh}/bin/ssh kmein@prism.r -t tmux attach"; + where = "source ${where}"; }; } { diff --git a/configs/ssh.nix b/configs/ssh.nix index 2b7209c..12d64e2 100644 --- a/configs/ssh.nix +++ b/configs/ssh.nix @@ -59,11 +59,6 @@ in { hostname = "v22017123717457389.megasrv.de"; port = 49123; }; - irc = { - user = "kmein"; - hostname = "prism.r"; - extraOptions.RemoteCommand = "tmux a"; - }; "gitlab.peixdev.net".port = 999; "gitlab.gchq.icu".port = 1022; };