From ca3ecd39eedaf521fb5205af19fa9219fc821fab Mon Sep 17 00:00:00 2001 From: h7x4 <h7x4@nani.wtf> Date: Mon, 24 Mar 2025 11:13:25 +0100 Subject: [PATCH] home/shell: add a few more aliases --- home/shell.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/home/shell.nix b/home/shell.nix index eb005a0..f64e55c 100644 --- a/home/shell.nix +++ b/home/shell.nix @@ -291,6 +291,10 @@ in { ]; }; + cdtmp = "cd \"$(mktemp -d)\""; + + open = "${pkgs.xdg-utils}/bin/xdg-open"; + e = "$EDITOR"; m = p "ncmpcpp"; g = "${pkgs.gitoxide}/bin/gix"; @@ -328,6 +332,17 @@ in { ]; }; + list-applications = { + type = ";"; + alias = map (x: "${p "eza"} -lah ${x}") [ + "/run/current-system/sw/share/applications" + "~/.local/share/applications" + "~/.local/state/nix/profiles/home-manager/home-path/share/applications" + ]; + }; + + cdr = "$(git rev-parse --show-toplevel)"; + view-latex = "${pkgs.texlive.combined.scheme-full}/bin/latexmk -pdf -pvc main.tex"; reload-tmux = "${p "tmux"} source $HOME/.config/tmux/tmux.conf"; @@ -381,6 +396,11 @@ in { # "--pdf-engine=xelatex" # "-o \"$2\"" # ]; + + # rwhich = functors.shellJoin.wrap [ + # "which \"$@\"" + # "xargs realpath --" + # ]; # }; # };