22 lines
560 B
Bash
22 lines
560 B
Bash
## Tell you the current Python and what shell you are using
|
|
CP=$(which python)
|
|
echo ""
|
|
echo "Current Python: $CP"
|
|
echo "Shell: $0"
|
|
echo ""
|
|
|
|
# Set the prompt
|
|
bldgrn='\e[1;32m'
|
|
txtrst='\e[0m'
|
|
print_before_the_prompt() {
|
|
printf "$bldgrn%s\n$txtrst" "$PWD"
|
|
}
|
|
PROMPT_COMMAND=print_before_the_prompt
|
|
PS1="${VIRTUAL_ENV_PROMPT}-> "
|
|
|
|
## No need to enter cd when you want to change to a new directory
|
|
shopt -s autocd
|
|
|
|
# With the alias that follows, you can type `la` to get a nicely formatted
|
|
# listing of the contents of the current directory.
|
|
alias la="ls -lahF"
|