From 4925296194523ed56bc660225f27fc98dccacc49 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Thu, 29 Jan 2026 12:25:46 +0100 Subject: [PATCH] added ability to edit current zsh command in editor. --- configs/home-manager/nushell/config.nu | 3 --- configs/home-manager/zsh.nix | 7 ++++--- hosts/cumulus/default.nix | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/configs/home-manager/nushell/config.nu b/configs/home-manager/nushell/config.nu index a3ebfc7..fad1925 100644 --- a/configs/home-manager/nushell/config.nu +++ b/configs/home-manager/nushell/config.nu @@ -28,9 +28,6 @@ alias la = ls -a alias ll = ls -l alias lla = ls -la alias pyactivate = overlay use ./.venv/bin/activate.nu -alias tmux = tmux -u -# converts all .doc and .docx files in the local directory to pdfs using libreoffice -alias doc2pdf = loffice --convert-to pdf --headless *.docx #common options for sshfs alias sshmnt = sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15 diff --git a/configs/home-manager/zsh.nix b/configs/home-manager/zsh.nix index 0392a0c..bd5431f 100644 --- a/configs/home-manager/zsh.nix +++ b/configs/home-manager/zsh.nix @@ -42,15 +42,16 @@ # Turn off terminal beep on autocomplete. unsetopt BEEP + #edit command line in editor with v + autoload edit-command-line; zle -N edit-command-line + bindkey -M vicmd v edit-command-line + #cheat.sh is a wonderful tool, the less typing needed the better. cheat(){ for i in "$@"; do curl cheat.sh/"$i" done } - #the tre command has some shell integration. - tre() { command tre "$@" --editor && source "/tmp/tre_aliases_$USER" 2>/dev/null; } - tred() { command tre "$@" --editor=z --directories && source "/tmp/tre_aliases_$USER" 2>/dev/null; } #moves a file, leaving a symlink in its place. mvln(){ diff --git a/hosts/cumulus/default.nix b/hosts/cumulus/default.nix index 5060696..ddaef65 100644 --- a/hosts/cumulus/default.nix +++ b/hosts/cumulus/default.nix @@ -3,6 +3,7 @@ myLib, ... }: +# rockpro64 home arm64 server, serves as adblocker among other things. inputs.nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs myLib;}; modules = [