.profile: Make bash more uniform
This commit is contained in:
parent
720640c03b
commit
8437d55ced
@ -50,6 +50,11 @@ _proj() {
|
|||||||
# Autocompletion for zsh
|
# Autocompletion for zsh
|
||||||
compdef _proj proj > /dev/null 2>&1 &&
|
compdef _proj proj > /dev/null 2>&1 &&
|
||||||
_proj() {
|
_proj() {
|
||||||
|
for dir in $HOME/Projects/*; do
|
||||||
|
temp="$(basename "$dir")"
|
||||||
|
temp="${reply//[^ a-zA-Z0-9.]/}"
|
||||||
|
reply+=" $temp"
|
||||||
|
done
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
.profile
2
.profile
@ -133,7 +133,7 @@ _ps1() {
|
|||||||
if ! [ "$exitcode" = "0" ]; then
|
if ! [ "$exitcode" = "0" ]; then
|
||||||
fail="${fg_bold}${fg_red}?"
|
fail="${fg_bold}${fg_red}?"
|
||||||
fi
|
fi
|
||||||
printf "(${prefix}${cpwd}${r})${fail}${r}${fg_green}\$${r} "
|
printf "[${prefix}${cpwd}${r}]${fail}${r}${fg_green}\$${r} "
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! [ "$ZSH_NAME" ]; then
|
if ! [ "$ZSH_NAME" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user