Skip to content

Aliases ​

Shell aliases are shortcuts that represent long or complex commands in a more convenient and concise form. By defining an alias, you can replace a commonly used command with a simple keyword or abbreviation. This helps to speed up your workflow, reduce typing, and minimize errors by using predefined command patterns.

For example, instead of typing ls -l every time, you can create an alias ll to execute it.

TIP

If you need to bypass an alias and run the original command, you can prefix it with \. Using the example above, to use the original ls command, use \ls.

Pre-Configured Aliases ​

The workspace's shell environments comes packed with automatically configured aliases. These aliases are typically loaded from:

  • Oh My Zsh Plugins: depending on the active oh-my-zsh plugins that defined using WS_ZSH_PLUGINS (see terminal documentation for more details).
  • Workspace Configuration: the workspace defines scripts in /usr/lib/ohmyzsh/custom.

User Defined Aliases ​

You can define your own aliases by editing the session configuration files. See the autoload documentation for more details.

These aliases will be available whenever you start a new session, making it easier to access commonly used commands.

Finding Aliases ​

If you're unsure which aliases are available or want to find specific aliases, you can use the following command to list them all:

sh
alias

You can also pipe the output through fzf to interactively search for specific aliases:

sh
alias | fzf

Released under the MIT License