Last active
February 26, 2018 19:36
-
-
Save lopoc/16b89d44905e0d2767eb8eb5b7a6e857 to your computer and use it in GitHub Desktop.
adding [TORIFIED] to "torsocks --shell" prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | |
} |
Author
lopoc
commented
Feb 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment