Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
Bash aliases installed by getlino¶
The following command aliases are defined in ~/.lino_bash_aliases.
The ~/.lino_bash_aliases file¶
- ~/.lino_bash_aliases¶
Contains several aliases and shell functions.
This file was created by getlino configure and we asked you (in
Install your Lino developer environment) to source it from within your
~/.bash_aliases or your ~/.bashrc file.
When installing Lino on a production server it is a system-wide file
in /etc/getlino/lino_bash_aliases.
go¶
- go¶
cdto one of your local project directories using its nickname.
For an introduction, see The inv command.
The go command is a shell function, you can see what it does by saying:
$ type go
go is a function
go ()
{
for BASE in ~/lino/lino_local ~/lino/env/repositories ~/lino/env/repositories/book/lino_book/projects
do
if [ -d $BASE/$1 ] ; then
cd $BASE/$1;
return;
fi
done
echo Oops: no project $1
return -1
}
In case you also use the Go programming language on
your computer, you might want to change its name from “go” to “goto”. You do
this by simply editing your ~/.lino_bash_aliases file.
Note how the for BASE in of the go command also loops over the
directory ~/lino/env/repositories/book/lino_book/projects. This
directory contains our demo projects.
runserver¶
- runserver¶
An alias for
LINO_LOGLEVEL=DEBUG python manage.py runserver
pm¶
- pm¶
An alias for
python manage.py, in other words for executing adjango-admincommand.This alias is installed by
getlino configure.
a¶
- a¶
Expands to
. env/bin/activate.This alias is installed by
getlino configure.
pywhich¶
- pywhich¶
Shortcut to quickly show where the source code of a Python module is coming from.
This is useful e.g. when you are having troubles with your virtual environments.
The pywhich command is actually also a simply shell function:
function pywhich() {
python -c "import $1; print($1.__file__)"
}