Skip to content

Instantly share code, notes, and snippets.

@lopoc
Last active February 26, 2018 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopoc/16b89d44905e0d2767eb8eb5b7a6e857 to your computer and use it in GitHub Desktop.
Save lopoc/16b89d44905e0d2767eb8eb5b7a6e857 to your computer and use it in GitHub Desktop.
adding [TORIFIED] to "torsocks --shell" prompt
diff --git a/src/bin/torsocks.in b/src/bin/torsocks.in
index fe8b67a..51c4573 100644
--- a/src/bin/torsocks.in
+++ b/src/bin/torsocks.in
@@ -125,7 +125,7 @@ tor_shell ()
{
set_ld_preload
echo "$0: New torified shell coming right up..."
- ${SHELL:-/bin/sh}
+ PROMPT_COMMAND='PS1="\033[1m[TORIFIED] - $PS1"; unset PROMPT_COMMAND' ${SHELL:-/bin/sh}
}
@lopoc
Copy link
Author

lopoc commented Feb 26, 2018

screenshot from 2018-02-26 11-43-33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment