~/.ย ๐
Cross-platform, cross-shell dotfiles
powered by chezmoi ๐
Universal command set and colourful shell configurations for Bash, Zsh and Powershell, compatible with macOS, Windows and (partially) Linux, all managed easily using chezmoi.
Project goals โฝ
- 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! ๐
Supported toolset ๐ ๏ธ
Use either one or many of these, the config files will be in place and ready to provide a familiar interface.
๐ Shells
- 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!
๐ป Terminals
- Hyper ๐ง๏ฃฟโ:
~/.hyper.js
- iTerm2 ๏ฃฟ:
~/.config/iterm/
- macOS Terminal ๏ฃฟ
- Windows Terminal โ:
~/.config/windows_terminal/
๐ฆ Package managers
- Homebrew ๏ฃฟ:
~/.Brewfile
- Scoop โ
๐พ Universal apps ๐ง๏ฃฟโ
- 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!
Cross-shell compatibility matrix ๐
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 ๐ง.
๐งญ Easier navigation
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. |
๐๏ธ Directory browsing
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. |
๐๏ธ File management
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | cpv |
Copies a file securely. |
โ | โ | โ | fd |
Finds directories. |
โ | โ | โ | ff |
Finds files. |
โ | โ | โ | mirror |
Mirrors directories. |
โ | โ | โ | rg |
Searches recursively with ripgrep. |
๐ก General aliases
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. |
๐ Time
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. |
๐ Networking
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 |
โก Power management
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | hibernate |
Hibernates the system. |
โ | โ | โ | lock |
Locks the session. |
โ | โ | โ | poweroff |
Shuts down the system. |
โ | โ | โ | reboot |
Restarts the system. |
๐ค Sysadmin
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. |
๐ฅ๏ธ Applications
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. |
๐ฉโ๐ป Development
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 . |
๏ฃฟ macOS
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | hidedesktop showdesktop |
Toggles display of desktop icons. |
โ | โ | โ | hidefiles showfiles |
Toggles hidden files display in Finder. |
โ | โ | โ | spotoff spoton |
Toggles Spotlight. |
โ Windows
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | hidefiles showfiles |
Toggles hidden files display in File Explorer. |
๐ Common paths
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | dls |
Navigates to ~/Downloads . |
โ | โ | โ | docs |
Navigates to ~/Documents . |
โ | โ | โ | dt |
Navigates to ~/Desktop . |
๐ Configuration paths
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. |
๐ Custom paths
Bash | PowerShell | Zsh | Command | Description |
---|---|---|---|---|
โ | โ | โ | archives |
Navigates to ~/Archives . |
โ | โ | โ | repos |
Navigates to ~/Code . |
๐ฑ Varia
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. |
Inspirations ๐ก
- 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.