diff --git a/home/modules/gui-apps.nix b/home/modules/gui-apps.nix index 450c48a..49131c4 100644 --- a/home/modules/gui-apps.nix +++ b/home/modules/gui-apps.nix @@ -2,6 +2,7 @@ home.packages = with pkgs; [ feh vlc + dconf firefox zoom-us discord @@ -40,4 +41,5 @@ }; }; + } diff --git a/home/modules/hacking.nix b/home/modules/hacking.nix index 33564d1..cd8ad24 100644 --- a/home/modules/hacking.nix +++ b/home/modules/hacking.nix @@ -23,7 +23,6 @@ openldap rustscan inetutils - wireshark thc-hydra exploitdb responder diff --git a/home/modules/networking.nix b/home/modules/networking.nix index 58b2b72..268378c 100644 --- a/home/modules/networking.nix +++ b/home/modules/networking.nix @@ -5,9 +5,9 @@ dig iftop iperf - tshark tcpdump ethtool + wireshark traceroute ]; } diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index abe5dde..63014bc 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -18,7 +18,6 @@ shellAliases = { cd = "z"; ls = "eza"; - awkuniq = "sort | uniq"; histogram = "awkuniq -c | sort -nr"; json-less = "jq -C . | less -R"; csv2json = "python -c 'import csv, json, sys; print(json.dumps([dict(r) for r in csv.DictReader(sys.stdin)]))'"; @@ -61,6 +60,15 @@ if [[ -n "$SSH_CONNECTION" && "$TERM" == "ghostty" ]]; then export TERM="xterm-256color" fi + + awkuniq() { + if [[ "$1" == "-c" ]]; then + awk '{ !x[$0]++ } END { for (i in x) print x[i] "\t" i }' + else + awk '!x[$0]++' + fi + } + ''; plugins = [