Skip to content

Aliases ​

The workspace shell comes with short names for common commands, and loads the aliases you add. For example, ll runs eza --long --all --classify.

💡 TIP

To bypass an alias and run the original command, prefix it with \. For example, \ls runs the original ls instead of eza.

Preinstalled Aliases ​

The aliases come from two sources:

  • Oh My Zsh plugins: each active oh-my-zsh plugin, set with WS_ZSH_PLUGINS, adds its own aliases (see the terminal documentation).
  • Kloud Workspace configuration: the scripts in /usr/share/ohmyzsh/custom define the aliases and functions below.

Workspace Aliases ​

AliasRuns
artphp artisan
catbat
cspellcspell --config=/etc/cspell/config.yaml
diffdiff --side-by-side --suppress-common-lines --color=auto
ipip -c
leza --long --all
ldeza -lD (directories only)
lfeza -lF (files only)
lheza -dl .* --group-directories-first (hidden entries only)
lleza --long --all --classify
lseza --color=always
lsieza --icons
lteza -al --sort=modified
open-settingsOpens your user settings.json in the editor
pnpxpnpm dlx (shows its help with no arguments)
treeeza --tree

The oh-my-zsh la and lsa aliases are removed.

Shell Functions ​

FunctionDoes
wsWith no arguments, changes to the workspace root; otherwise runs ws-cli
open <file>Opens a file in the editor
help <command>Shows a command's help, highlighted

User-Defined Aliases ​

Add your own aliases to a .zsh file in ~/.ws/session.d/:

sh
echo "alias proj='cd /workspace/my-project'" >> ~/.ws/session.d/aliases.zsh

Every new terminal session loads these files after the workspace's own aliases, so your alias wins over a preinstalled one with the same name. See the autoload documentation for more details.

Finding Aliases ​

To list every alias in the current session:

sh
alias

To search them interactively, pipe the list through fzf:

sh
alias | fzf

Released under the MIT License