Hey guys, it's been a while since my last post...
Anyway, I was foolin around with my slackware and wanted to make a little script to change prompts according to my mood.
Ok, here's what I did:
Code:
#!/bin/bash
case "$1" in
"rose")
PS1="\033[0;35m\]@\033[0;32m\]}--}-\033[1;37m\]\u\033[0;31m\]@\033[1;37m\]\h\033[0;32m\]-{--{\033[0;35m\]@ \033[0;0m\]";;
"reagge")
PS1="\033[0;32m\]<\033[0;0m\]---\033[0;31m\]\u\033[1;33m\]@\033[0;31m\]\h\033[0;0m\]---\033[0;32m\]>\033[0;0m\]$ ";;
*)
PS1="<\u@\h> \$ "
esac
export PS1
Inside the script everything works. The case statement works, the $PS1 var is correctly set. THe problem is that it doesn't change my prompt. What should I do besides (or instead of) exporting the variable?
Is it somehow impossible what I'm trying to do?
I'll appreciate any help. Thx