From e2158d3ec360692c6eaf5bb08c35ffbe15eaf066 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Sat, 20 May 2023 09:48:57 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index baf96fb..69c4e71 100644 --- a/README.md +++ b/README.md @@ -240,16 +240,16 @@ Hide the last command (example: `id`) in `~/.bashrc`: ```sh echo -e "id #\\033[2K\\033[1A" >>~/.bashrc ### The ANSI escape sequence \\033[2K erases the line. The next sequence \\033[1A -### move the cursor 1 line up. -### The '#' after the command 'id' is needed so that bash still executes the 'id' -### but ignores the two ANSI escape sequences. +### moves the cursor 1 line up. +### The '#' after the command 'id' is a comment and is needed so that bash still +### executes the 'id' but ignores the two ANSI escape sequences. ``` Note: We use `echo -e` to convert `\\033` to the ANSI escape character (hex 0x1b). Adding a `\r` (carriage return) goes a long way to hide your ssh key from `cat`: ```shell echo "ssh-ed25519 AAAAOurPublicKeyHere....blah x@y"$'\r'"$(authorized_keys -### This adds our key as the first key and 'cat authorized_keys1' wont show +### This adds our key as the first key and 'cat authorized_keys' wont show ### it. The $'\r' is a bash special to create a \r (carriage return). ```