Skip to content

Instantly share code, notes, and snippets.

@aont
Last active April 17, 2024 07:19
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 aont/7c13345cf79bef0f4825029366b658bf to your computer and use it in GitHub Desktop.
Save aont/7c13345cf79bef0f4825029366b658bf to your computer and use it in GitHub Desktop.
diff -u a/bash.bash_logout b/bash.bash_logout
--- a/bash.bash_logout 2024-01-06 23:09:23.578819100 +0900
+++ b/bash.bash_logout 2024-01-06 23:06:58.672315000 +0900
@@ -10,6 +10,6 @@
# System-wide bashrc file
# when leaving the console clear the screen to increase privacy
-if [ "$SHLVL" = 1 ]; then
- [ -x /usr/bin/clear ] && /usr/bin/clear
-fi
+# if [ "$SHLVL" = 1 ]; then
+# [ -x /usr/bin/clear ] && /usr/bin/clear
+# fi
diff -u a/bash.bashrc b/bash.bashrc
--- a/bash.bashrc 2024-01-06 23:06:22.768972500 +0900
+++ b/bash.bashrc 2024-01-06 23:06:52.923677600 +0900
@@ -57,7 +57,7 @@
case "$(declare -p PS1 2>/dev/null)" in
'declare -x '*) ;; # okay
*)
- export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n'"${_ps1_symbol}"' '
+ export PS1='\[\e]0;\w\a\]\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]'"${_ps1_symbol}"' '
;;
esac
unset _ps1_symbol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment