From 5ffd25a7cb2dfd9c467024c5720f1a24799af59c Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 25 Mar 2024 22:58:55 +0100 Subject: [PATCH] Revert "more aliases" This reverts commit 019372838b312c002b228f678b69b808aa407123. --- home/programs/terminal/shell/zsh/aliases.nix | 28 ++------------------ 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/home/programs/terminal/shell/zsh/aliases.nix b/home/programs/terminal/shell/zsh/aliases.nix index 1d3947f..2a1aa7a 100644 --- a/home/programs/terminal/shell/zsh/aliases.nix +++ b/home/programs/terminal/shell/zsh/aliases.nix @@ -1,6 +1,6 @@ -{ config, pkgs, lib, ... }: +{ config, ... }: let - inherit (lib.meta) getExe getExe'; + username = config.myOptions.system.username; in { programs.zsh.shellAliases = { @@ -22,7 +22,6 @@ in ".5" = "cd ../../../../../"; # Files/Directories utilities - fcd = "cd $(find -type d | fzf)"; mkdir = "mkdir -p"; md = "mkdir"; fhere = "find . -name"; @@ -31,29 +30,6 @@ in rrf = "rm -rf"; vimdiff = "nvim -d"; - # Directory listing aliases - ls = "ls --color=auto"; - l = "ls -lahX --classify"; - ll = "ls -lahX --classify --group-directories-first"; - ldir = "ls -lahX --classify | grep --color=never ^d"; - dotall = "ls -lahXd .[a-z]*"; - dotfiles = "dotall | grep -v ^d"; - dotdirs = "dotall | grep --color=never ^d"; - - # File validation and manipulation - yamlcheck = "${getExe pkgs.python3} -c 'import sys, yaml as y; y.safe_load(open(sys.argv[1]))'"; # Validate YAML - jsoncheck = "${getExe pkgs.jq} "." >/dev/null <"; # Validate JSON - urlencode = "${getExe pkgs.python3} -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.argv[1]));'"; # Encode strings as URLs (space->%20, etc.) - mergepdf = "${getExe pkgs.gnostscript} -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=_merged.pdf"; # Usage: `mergepdf input{1,2,3}.pdf`` - encrypt = "${getExe pkgs.gnupg} -c --no-symkey-cache --cipher-algo AES256"; # Encrypt file with AES256 symetric encryption - - # Get global IP address by querying opendns directly - # (much better than using some random "what is my ip" service) - # - ip = "${getExe pkgs.dig} @resolver4.opendns.com myip.opendns.com +short"; - ip4 = "${getExe pkgs.dig} @resolver4.opendns.com myip.opendns.com +short -4"; - ip6 = "${getExe pkgs.dig} @resolver1.ipv6-sandbox.opendns.com AAAA myip.opendns.com +short -6"; - # Expand aliases from sudo sudo = "sudo "; };