From 011d46bcfc83a128ec81b040221ae4c0f369ae0d Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 8 Mar 2024 22:20:44 +0300 Subject: [PATCH] Doc : Update bash. --- .doc/Bash.md | 17 +++++------------ .doc/Generate.sh | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.doc/Bash.md b/.doc/Bash.md index 1df1efc3..a983f7a4 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -155,12 +155,6 @@ Command|Description `dcpu [SERVICES]`|Docker compose pull & up specified services. `dcul [SERVICES]`|Docker compose up & attach to logs for specified services. -## Doc. - -Command|Description ----|--- -`doc_bash`|Generate a markdown file with all the help info. Outputs to `~/.doc/Bash.md`. - ## Dvd. Command|Description @@ -287,13 +281,12 @@ Command|Description Command|Description ---|--- -`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname. -`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname. -`nix_update`|Update system versions. +`nixos_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname. +`nixos_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname. `nix_shell [NAME]`|Spawn shell with specified nix environment. Uses flake.nix in current dir by default. -`nix_tmpshell `|Spawn nix-shell with specified packages. -`nix_live`| Build live image. -`nix_generations`| List nixos generations. +`nix_tmpshell `|Spawn temporary nix-shell with specified packages. +`nixos_live`| Build live image. +`nixos_generations`| List nixos generations. `nixdroid_switch`| Switch nix-on-droid. ## Notify. diff --git a/.doc/Generate.sh b/.doc/Generate.sh index 98e25cb6..d1a7ea2f 100755 --- a/.doc/Generate.sh +++ b/.doc/Generate.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -self=$(realpath .) +self=$(realpath ${0}) cd ${self%/*} IFS=$'\n'