Last active
June 25, 2020 08:28
-
-
Save kozak127/48bfadd2b09e1017f1ad to your computer and use it in GitHub Desktop.
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
# MY ALIASES | |
alias pingg="ping google.com" | |
alias mtrg="mtr google.com" | |
alias svn_remove_missing="svn status | grep '^!' | awk '{print $2}' | xargs svn delete" | |
alias run-proxy="ssh -N -D 9876 [email protected]" | |
# DOUBLE LOGGING | |
PROMPT_COMMAND='echo [$$] $(date) $(history 1) >>~/.local/share/logs/bash' | |
# BASH PROMPT SETUP | |
PS1="\a\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\n$ " | |
force_color_prompt=yes | |
# BASH ROOT PROMPT SETUP | |
# PS1="\a\e[1;31m\u@\h\e[0m:\e[1;34m\w\e[0m\n$ " | |
# force_color_prompt=yes | |
# SET TITLE OF TERMINAL TAB IN TERMINAL | |
function set-title() { | |
if [[ -z "$ORIG" ]]; then | |
ORIG=$PS1 | |
fi | |
TITLE="\[\e]2;$*\a\]" | |
PS1=${ORIG}${TITLE} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment