Using the Terminal
Anatase comes with a lightly opinionated zsh terminal by default. It also
includes bash, fish, screen and tmux, giving you maximum flexibility for
your host terminal. Applications such as NeoVim belong in spaces, so they are not
provided on the host image. In this section, we will touch on some of the included
aliases to get you up and running. After, we provide instructions on how to
override the themeing in case you want to install your own.
Aliases
Disabling your sudo password
One of the most annoying things when setting up a system is to figure out how to disable your sudo password (if you want to do that). Anatase comes with an alias to do this. Type the following and your password to create a sudoers rule that disables the sudo password for your user.
sudonopass
Spaces use their own configuration, so you will want to type it again for your development space. You should leave the password enabled for spaces meant for applications.
Python Aliases
As a python developer, you know the pain of creating and activating virtual environments more than anyone. Anatase comes with the following aliases to make that easier:
# Creating virtual environments (CreateVenv)
# Run this once to create ./venv in the current directory
# containing python packages for this specific project
cv # python3 -m venv venv
cv 3.14 # python3.14 -m venv venv
# Activating a virtual environment (ActivateVenv)
# This makes your terminal use the python of the environment
# Run every time you start a terminal
av # source venv/bin/activate
# Now you can install your packages and run your
pip install [-r requirements.py, pytorch]
python main.py
# Deactivating a virtual environment (DeactivateVenv)
dv # deactivate
Screen Aliases
A simpler alternative to tmux is GNU screen. GNU screen enables you to create
a terminal that you can detach from. This allows you to start applications such
as ComfyUI and then close your terminal while leaving them running. screen
works both for the host terminal and spaces (if you install it).
Rebooting or shutting down your computer terminates your screens.
Here is a brief guide on how to use screen and included aliases.
To use a screen, first you need to create it and enter it:
# Create an unnamed screen
ss # screen -S
## Create a named screen (easier to return to)
ss <name> # screen -S <name>
Then, the following keyboard shortcuts are important to know:
# Detach from screen (leaving it running)
Ctrl + A, D
# Pause output and enable scrolling
# Scroll with arrow keys
Ctrl + A, Escape
# Exit screen (if nothing is running)
# This also works for normal terminals
Ctrl + D
After you have exited a screen and left it running, you may return to it with:
sr # screen -r
sr <name> # screen -r <name>
If you only have one screen running, you do not need to type its name. You may
autocomplete names with Tab. If you forgot which screens are running, typing
sr will list their names if there are multiple running.
Only one terminal can hold a screen at a time. If a hanged ssh session or a terminal you forgot about is holding a screen, you can force detach it and enter it as follows:
sr -d # screen -r -d
sr -d <name> # screen -r -d <name>
If you did not name a screen when you created it and have multiple screens,
sr also displays a number for a screen. Replace <name> with that number
to enter the screen.
Extracting Archives
You know the pain. How do I extract X, Y, or Z archive? .rar, .tar.gz, there is just too many of them.
Anatase comes with a convenient alias to extract all archives supported by the system.
ex <pkg>
If you want the underlying command, you can type:
$ which ex
ex () {
if [ -f $1 ]
then
case $1 in
(*.tar.bz2) tar xjf $1 ;;
(*.tar.gz) tar xzf $1 ;;
...
Find the command belonging to your archive type, then use that directly.
Using Custom themes / terminals
Ricing your terminal
Ricing is the name for when you try to make your Linux distribution look custom and fancy. Reference this video for education and then head over to r/unixporn for inspiration.
Anatase uses a theme called Powerlevel10k
for graphical terminals, falling back to a lighter theme inspired by afmagic
for screens, SSH, and TTYs. It is also "riced" using a light cyberpunk theme
throughout the OS, website, and documentation.
To disable Anatase's prompt theme while keeping the rest of its zsh defaults,
create /etc/environment.d/zsh.conf with the following value:
ANATASE_ZSH_THEME=off
Log out and back in for the change to take effect. TODO: provide a simple file that can be touched as an alternative, similar to below.
Using fish or bash as defaults
Unfortunately, a limitation of immutable systems such as Anatase is that if
you roll forward to an image that does not contain fish or zsh, your user
will no longer have a terminal. So it is not possible, and you should not use,
the command chsh.
You may disable the Anatase override to zsh and use a default bash shell using:
touch ~/.no-anatase-zsh
Other than that, to use fish, bash or zsh, change the profile of your
terminal in VS Code, Konsole, etc. In Spaces, it is safe to use chsh and you
can do that if you prefer.