renemarc/dotfiles
关于
~/. 跨平台、跨 Shell 的配置文件。⚙️💻
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
~/. 📂
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
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
- Homebrew :
~/.Brewfile - Scoop ⊞
💾 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.
探索相关项目
加载中…