Universal command set and colourful shell configurations for Bash, Zsh and Powershell, compatible with macOS, Windows and (partially) Linux, all managed easily using chezmoi.
- Unified set of aliases and commands.
- Familiar feel and creature comforts across environments.
- Cross-platform file management toolset.
- Easy access to common paths.
- Shortcuts to popular cross-platform apps.
- System-agnostic
update
anddotfiles
install commands. - A pretty interface! 💃
Use either one or many of these, the config files will be in place and ready to provide a familiar interface.
- Bash 🐧:
~/.bashrc
enhanced with Bash-It! - PowerShell 5.1+ 🐧⊞:
~/.config/powershell/
enhanced with Oh-My-Posh, Terminal Icons, and others! - Z shell 🐧:
~/.zshrc
enhanced with Oh-My-Zsh, Powerlevel10K, and others!
- Hyper 🐧⊞:
~/.hyper.js
- iTerm2 :
~/.config/iterm/
- macOS Terminal
- Windows Terminal ⊞:
~/.config/windows_terminal/
- Homebrew :
~/.Brewfile
- Scoop ⊞
- chezmoi dotfiles manager:
~/.chezmoi.toml
- cURL data transfer tool:
~/.curlrc
- Git version-control system:
~/.gitconfig
- GNU Nano 4.x+ text editor:
~/.nanorc
enhanced with Improved Nano Syntax Highlighting Files! - GNU Wget HTTP/FTP file downloader:
~/.wgetrc
- Micro text editor:
~/.config/micro/
- OpenSSH secure networking utilities:
~/.ssh/config
- Ripgrep fast-search tool:
~/.ripgreprc
- SQLite3 database client:
~/.sqliterc
- Starship 🚀 cross-shell prompt:
~/.config/starship.toml
- tmux terminal multiplexer:
~/.tmux.conf.local
enhanced with Oh-My-Tmux! - Vim text editor:
~/.vimrc
enhanced with Ultimate vimrc!
These are unified CLI commands available amongst different shells on all platforms. While some of their outputs may differ in style between different environments, their usage and behaviours remain universal.
Additional aliases are provided by Bash-It, Oh-My-Zsh and Powershell, and are listed by using the command alias
.
System-specific aliases are marked with , ⊞, or 🐧.
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | ~ |
Navigates to user home directory. |
✅ | ✅ | ✅ | cd- |
Navigates to last used directory. |
✅ | ✅ | ✅ | .. cd.. |
Navigates up a directory. |
✅ | ✅ | ✅ | ... |
Navigates up two directories. |
✅ | ✅ | ✅ | .... |
Navigates up three directories. |
✅ | ✅ | ✅ | ..... |
Navigates up four directories. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | l |
Lists visible files in long format. |
✅ | ✅ | ✅ | ll |
Lists all files in long format, excluding . and .. . |
✅ | ✅ | ✅ | lsd |
Lists only directories in long format. |
✅ | ✅ | ✅ | lsh |
Lists only hidden files in long format. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | cpv |
Copies a file securely. |
✅ | ✅ | ✅ | fd |
Finds directories. |
✅ | ✅ | ✅ | ff |
Finds files. |
❌ | ✅ | ❌ | mirror |
Mirrors directories. |
✅ | ✅ | ✅ | rg |
Searches recursively with ripgrep. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | alias |
Lists aliases. |
✅ | ✅ | ✅ | c |
Clears the console screen. |
✅ | ❌ | ✅ | extract x |
Extracts common file formats. Usage: extract solarized.zip |
✅ | ✅ | ✅ | h |
Displays/Searches global history. Usage: h Usage: h cd |
✅ | ✅ | hs |
Displays/Searches session history. Usage: hs Usage: hs cd |
|
✅ | ✅ | ✅ | mkcd take |
Creates directory and change to it. Usage: mkcd foldername |
✅ | ❌ | ✅ | reload |
Reloads the shell. |
✅ | ✅ | ✅ | repeat r |
Repeats a command x times.Usage: repeat 5 echo hello . |
✅ | ❌ | ✅ | resource |
Reloads configuration. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | now unow |
Gets local/UTC date and time in ISO 8601 format YYYY-MM-DDThh:mm:ss . |
✅ | ✅ | ✅ | nowdate unowdate |
Gets local/UTC date in YYYY-MM-DD format. |
✅ | ✅ | ✅ | nowtime unowtime |
Gets local/UTC time in hh:mm:ss format. |
✅ | ✅ | ✅ | timestamp |
Gets Unix time stamp. |
✅ | ✅ | ✅ | week |
Gets week number in ISO 8601 format YYYY-Www . |
✅ | ✅ | ✅ | weekday |
Gets weekday number. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | fastping |
Pings hostname(s) 30 times in quick succession. |
✅ | ✅ | ✅ | flushdns |
Flushes the DNS cache. |
✅ | ✅ | ✅ | ips |
Gets all IP addresses. |
✅ | ✅ | ✅ | localip |
Gets local IP address. |
✅ | ✅ | ✅ | publicip |
Gets external IP address. |
✅ | ✅ | ✅ | GET HEAD POST PUT DELETE TRACE OPTIONS |
Sends HTTP requests. _Usage: GET https://example.com |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | hibernate |
Hibernates the system. |
✅ | ✅ | ✅ | lock |
Locks the session. |
✅ | ✅ | ✅ | poweroff |
Shuts down the system. |
✅ | ✅ | ✅ | reboot |
Restarts the system. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | mnt |
Lists drive mounts. |
✅ | ✅ | ✅ | path |
Prints each $PATH entry on a separate line. |
✅ | ✅ | ✅ | sysinfo |
Displays information about the system. Uses either Winfetch, Neofetch, or Screenfetch. |
✅ | ✅ | ✅ | top |
Monitors processes and system resources. Uses either atop, htop, ntop ⊞, or native. |
✅ | ✅ | ✅ | update |
Keeps all apps and packages up to date. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | browse |
Opens file/URL in default browser. Usage: browse https://example.com |
✅ | ✅ | ✅ | chrome |
Opens file/URL in Chrome. |
✅ | ✅ | ✅ | edge |
Opens file/URL in Microsoft Edge. |
✅ | ✅ | ✅ | firefox |
Opens file/URL in Firefox. |
❔ | ✅ | ❔ | iexplore |
Opens file/URL in Internet Explorer. ⊞ |
✅ | ✅ | ✅ | opera |
Opens file/URL in Opera. |
✅ | ✅ | ✅ | safari |
Opens file/URL in Safari. |
✅ | ✅ | ✅ | ss |
Enters the Starship 🚀 cross-shell prompt. |
✅ | ✅ | ✅ | subl st |
Opens in Sublime Text. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | dk |
🐳 Alias for docker . |
✅ | ✅ | ✅ | dco |
🐳 Alias for docker-compose . |
✅ | ✅ | ✅ | g |
Alias for git . |
✅ | ✅ | ✅ | va |
🐍 Activates Python virtual environment venv . |
✅ | ✅ | ✅ | ve |
🐍 Creates Python virtual environment venv . |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | hidedesktop showdesktop |
Toggles display of desktop icons. |
✅ | ✅ | ✅ | hidefiles showfiles |
Toggles hidden files display in Finder. |
✅ | ✅ | ✅ | spotoff spoton |
Toggles Spotlight. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
❔ | ✅ | ❔ | hidefiles showfiles |
Toggles hidden files display in File Explorer. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | dls |
Navigates to ~/Downloads . |
✅ | ✅ | ✅ | docs |
Navigates to ~/Documents . |
✅ | ✅ | ✅ | dt |
Navigates to ~/Desktop . |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | chezmoiconf |
Navigates to Chezmoi's local configuration repo. |
✅ | ✅ | ✅ | powershellconf |
Navigates to Powershell's profile location. |
✅ | ✅ | ✅ | sublimeconf |
Navigates to Sublime Text's local configuration repo. |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | archives |
Navigates to ~/Archives . |
✅ | ✅ | ✅ | repos |
Navigates to ~/Code . |
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
✅ | ✅ | ✅ | cb |
📋 Copies contents to the clipboard. |
✅ | ✅ | ✅ | cbpaste |
📋 Pastes the contents of the clipboard. |
✅ | ✅ | ✅ | md5sum |
#️⃣ Calculates MD5 hashes. |
✅ | ✅ | ✅ | sha1sum |
#️⃣ Calculates SHA1 hashes. |
✅ | ✅ | ✅ | sha256sum |
#️⃣ Calculates SHA256 hashes. |
✅ | ✅ | ✅ | forecast |
🌤️ Displays detailed weather and forecast. |
✅ | ✅ | ✅ | weather |
🌤️ Displays current weather. |
- Digital Ocean: What are your favorite bash aliases?
- GitHub: dotfiles
- GitHub: Jay Harris' Windows dotfiles
- GitHub: Jan Moesen's dotfiles
- GitHub: Mathias Bynens' dotfiles
- nixCraft: 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
Don't forget to ⭐️ or 🔱 this repo! 😃
Assembled with ❤️ in Montréal.