|
|
|
@ -59,7 +59,7 @@ function __prompt_command { |
|
|
|
PS1+="${R}" |
|
|
|
;; |
|
|
|
esac |
|
|
|
PS1+="\h" |
|
|
|
PS1+="$HOSTNAME" |
|
|
|
|
|
|
|
local pwd='~' |
|
|
|
[ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/} |
|
|
|
@ -155,6 +155,11 @@ case $- in |
|
|
|
*) return ;; |
|
|
|
esac |
|
|
|
|
|
|
|
MIAOU_BASH_DIR=$(realpath /opt/miaou-bash) |
|
|
|
export MIAOU_BASH_DIR |
|
|
|
|
|
|
|
HOSTNAME=$(hostname -f) |
|
|
|
|
|
|
|
# don't put duplicate lines or lines starting with space in the history. |
|
|
|
HISTCONTROL=ignoreboth |
|
|
|
|
|
|
|
@ -199,8 +204,6 @@ stty -ixon |
|
|
|
|
|
|
|
PROMPT_COMMAND='__prompt_command' # Func to gen PS1 after CMDs |
|
|
|
|
|
|
|
MIAOU_BASH_DIR=/opt/miaou-bash |
|
|
|
|
|
|
|
# ALIASES |
|
|
|
|
|
|
|
alias sudo='sudo ' # smart sudo alias trick! |
|
|
|
@ -235,4 +238,3 @@ alias ssu4="ss -ntel4p | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d |
|
|
|
|
|
|
|
# Add path to any tools folder in /opt/miaou-* |
|
|
|
for i in {/opt,$HOME}/miaou-*/tools; do [[ -d "$i" ]] && PATH=$PATH:$i; done || true |
|
|
|
|