dotfiles
dotfiles copied to clipboard
~/. Cross-platform, cross-shell configuration files. βοΈπ»
~/.Β π
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.
Be sure to βοΈ or π± this repo if you find it useful! π
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
updateanddotfilesinstall 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 π§ο£Ώ:
~/.bashrcenhanced with Bash-It! - PowerShell 5.1+ π§ο£Ώβ:
~/.config/powershell/enhanced with Oh-My-Posh, Terminal Icons, and others! - Z shell π§ο£Ώ:
~/.zshrcenhanced with Oh-My-Zsh, Powerlevel10K, and others!
π» Terminals
- Hyper π§ο£Ώβ:
~/.hyper.js - iTerm2 ο£Ώ:
~/.config/iterm/ - macOS Terminal ο£Ώ
- Windows Terminal β:
~/.config/windows_terminal/
π¦ Package managers
πΎ Universal apps π§ο£Ώβ
- chezmoi dotfiles manager:
~/.chezmoi.toml - cURL data transfer tool:
~/.curlrc - Git :octocat: version-control system:
~/.gitconfig - GNU Nano 4.x+ text editor:
~/.nanorcenhanced 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.localenhanced with Oh-My-Tmux! - Vim text editor:
~/.vimrcenhanced 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. |
| β | β | β | extractx |
Extracts common file formats. Usage: extract solarized.zip |
| β | β | β | h |
Displays/Searches global history. Usage: hUsage: h cd |
| β | β | β οΈ | hs |
Displays/Searches session history. Usage: hsUsage: hs cd |
| β | β | β | mkcdtake |
Creates directory and change to it. Usage: mkcd foldername |
| β | β | β | reload |
Reloads the shell. |
| β | β | β | repeatr |
Repeats a command x times.Usage: repeat 5 echo hello. |
| β | β | β | resource |
Reloads configuration. |
π
π Time
| Bash | PowerShell | Zsh | Command | Description |
|---|---|---|---|---|
| β | β | β | nowunow |
Gets local/UTC date and time in ISO 8601 format YYYY-MM-DDThh:mm:ss. |
| β | β | β | nowdateunowdate |
Gets local/UTC date in YYYY-MM-DD format. |
| β | β | β | nowtimeunowtime |
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. |
| β | β | β | GETHEADPOSTPUTDELETETRACEOPTIONS |
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. |
| β | β | β | sublst |
Opens in Sublime Text. |
π
π©βπ» Development
| Bash | PowerShell | Zsh | Command | Description |
|---|---|---|---|---|
| β | β | β | dk |
π³ Alias for docker. |
| β | β | β | dco |
π³ Alias for docker-compose. |
| β | β | β | g |
:octocat: Alias for git. |
| β | β | β | va |
π Activates Python virtual environment venv. |
| β | β | β | ve |
π Creates Python virtual environment venv. |
π
ο£Ώ macOS
| Bash | PowerShell | Zsh | Command | Description |
|---|---|---|---|---|
| β | β | β | hidedesktopshowdesktop |
Toggles display of desktop icons. |
| β | β | β | hidefilesshowfiles |
Toggles hidden files display in Finder. |
| β | β | β | spotoffspoton |
Toggles Spotlight. |
π
β Windows
| Bash | PowerShell | Zsh | Command | Description |
|---|---|---|---|---|
| β | β | β | hidefilesshowfiles |
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.