I'm working a lot with Python. A while ago I switched to fish. Mainly because I don't really use a lot of bash scripts (I used to, but for my work it's mainly not useful).
I got several virtualenv for python compatibility. There is like 2/3 virtualenvs per version of django (3 versions) which makes it to 9 venvs. Now here is a script (at least a part of the script) I used with bash :
if [[ $1 == "myproject" ]]; then
cd $HOME/Prog/Scripts/Python/project/
if [[ $2 == "--env" ]]; then
source ../dj1.6-3.3venv/bin/activate
fi
if [[ $3 == "--run" ]]; then
python manage.py runserver
fi
fi
Now I got a simple alias with fish which is :
alias project_django='cd ~/Prog/Scripts/Python/project/; and source ../dj1.6-3.4.1venv/bin/activate.fish'
Although it works, it destroys my prompt and just gives me the usual >
which removes the git functions, current working directory and such.
Is there a way I can fix this ? Like by calling the fish prompt initialisation ? Does anyone got the same issue and how did you fix it ?
Alright. It seems that the size of the prompt was too large. When the current size of the terminal is too small for the prompt to be displayed, it just displays the classical >
. Even though that's stupid, it may help some people around here to know that... Just resize the window of your terminal.