.profile: Make bash more uniform

This commit is contained in:
Salt 2018-11-06 18:36:04 -06:00
parent 720640c03b
commit 8437d55ced
2 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,11 @@ _proj() {
# Autocompletion for zsh
compdef _proj proj > /dev/null 2>&1 &&
_proj() {
for dir in $HOME/Projects/*; do
temp="$(basename "$dir")"
temp="${reply//[^ a-zA-Z0-9.]/}"
reply+=" $temp"
done
return 0
}

View File

@ -133,7 +133,7 @@ _ps1() {
if ! [ "$exitcode" = "0" ]; then
fail="${fg_bold}${fg_red}?"
fi
printf "(${prefix}${cpwd}${r})${fail}${r}${fg_green}\$${r} "
printf "[${prefix}${cpwd}${r}]${fail}${r}${fg_green}\$${r} "
}
if ! [ "$ZSH_NAME" ]; then