# Aliases
Aliases allow you to create shortcuts for shell commands that you use
frequently. This allows you to be more productive and efficient by reducing the
amount of typing you have to do when using the shell regularly. As an example,
instead of typing git status
you could type gst
to obtain the same result.
This is a great way to save time and reduce considerably the amount of typing you have to do when using the terminal on a daily basis which helps you to be more productive and efficient.
# Presets
Dotfiles has a collection of configuration presets and diverse recipes that you can use to get started with.
# Automatic System detection
Dotfiles contains a utility function for detecting the current ls
flavor that
is in use in order to help setting up the right LS_COLORS
environment
variables to your system.
The LS_COLORS
environment variable is used by the ls
command to colorize the
output of the command.
# Check built-in aliases
Type the following alias command in your terminal:
alias
# GNU Find utilities aliases
macOS systems are based on BSD, rather than on GNU/Linux like RedHat, Debian,
and Ubuntu. As a result, a lot of the command line tools that ship with macOS
aren’t 100% compatible. For example, the find
command on macOS doesn’t support
the -printf
option, which is used by the locate
command. This means that the
locate
command doesn’t work on macOS. To fix this, you can install the GNU
versions of these commands, which are fully compatible with the Linux versions.
The GNU Find Utilities are the basic directory searching utilities of the GNU operating system. These programs are typically used in conjunction with other programs to provide modular and powerful directory search and file locating capabilities to other commands.
The tools supplied with this package are:
- find - search for files in a directory hierarchy
- locate - list files in databases that match a pattern
- updatedb - update a file name database
- xargs - build and execute command lines from standard input
Type the following alias command in your terminal:
brew install findutils
# The Dotfiles aliases
The files provided in Dotfiles contain a few opinionated aliases that you might
find useful. These are defined in the ./dist/lib/aliases
directory and loaded
automatically when you start a new shell session.
The aliases are loaded either by the ~/.bashrc
file if you are using the Bash
shell, or in the ~/.zshrc
file if you are using the Zsh shell.
They have been grouped by logical categories:
- archives - Aliases for working with archives.
- cd - Aliases for working with directories.
- chmod - Aliases for working with file permissions.
- clear - Aliases for clearing the terminal screen.
- default - The default aliases that are loaded for all users, regardless of the shell they are using, and of the operating system they are on,
- dig - Aliases for working with DNS.
- du - Aliases for working with disk usage.
- editor - Aliases for working with the editor.
- find - Aliases for working with the
fd
command. - gcloud - Aliases for working with the
gcloud
command. - git - Aliases for working with Git.
- gnu - Aliases for working with GNU Core utilities.
- heroku - Aliases for working with the Heroku CLI.
- interactive - Aliases for working with interactive commands.
- jekyll - Aliases for working with Jekyll.
- list - Aliases for working with the
ls
command. - make - Aliases for working with the
make
command. - mkdir - Aliases for working with the
mkdir
command. - npm - Aliases for working with the
npm
command. - pnpm - Aliases for working with the
pnpm
command. - ps - Aliases for working with the
ps
command. - rsync - Aliases for working with the
rsync
command. - rust - Aliases for working with the Rust programming language.
- subversion - Aliases for working with Subversion.
- sudo - Aliases for working with the
sudo
command. - tmux - Aliases for working with the
tmux
command. - update - Aliases for working with the
update
command. - uuid - Aliases for working with the
uuid
command. - wget - Aliases for working with the
wget
command.