.profile: Make bash more uniform
This commit is contained in:
parent
720640c03b
commit
8437d55ced
@ -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
|
||||
}
|
||||
|
||||
|
2
.profile
2
.profile
@ -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
|
||||
|
Reference in New Issue
Block a user