https://github.com/sheerun/home
Pretty, short, one-line ZSH prompt that makes you feel at home
https://github.com/sheerun/home
Last synced: 8 months ago
JSON representation
Pretty, short, one-line ZSH prompt that makes you feel at home
- Host: GitHub
- URL: https://github.com/sheerun/home
- Owner: sheerun
- License: mit
- Created: 2020-05-23T20:07:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-26T01:34:42.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T06:25:43.416Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - home - Pretty and short one-line theme that makes you feel at home. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - home - Pretty and short one-line theme that makes you feel at home. (Themes / ZSH on Windows)
README
# ⌂ home
> Pretty, short, one-line ZSH prompt that makes you feel at home

## Installation
If you wish to install just prompt, paste this line in your `~/.zshrc`:
```zsh
PROMPT="%F{000}%(?.%K{148}.%K{red}) %(?.⌂.✘) %F{249}%K{236} %1~ %k%f "
```
If you'd like all features described below, add this repository with any zsh package manger:
```zsh
# for zplug
zplug sheerun/home
# for antigen
antigen bundle sheerun/home
# for antibody
antibody bundle sheerun/home
# for zinit
zinit load sheerun/home
```
## Features
- Shows green ⌂ by default or red ✘ if previous command failed
- Shows current directory name (type `pwd` for full path)
- Use emacs keybindings (for example ctrl-a to go to start of command, ctrl-e to the end)
- Ctrl-z toggles process back and forth between background and foreground (useful for vim)
- Different default prompt color for ssh sessions
- Adds extra characters to word definition so Ctrl-w works better
- Makes autocompletion faster, more accurate, and enables fuzzy matching
- Adds history lines as soon as they appear, rather than waiting for shell exit
- You can type git commands without `git` (for example `log` for `git log` or `merge` for `git merge`)
- A few of extra git aliases:
- `st` is `git status`
- `ci` is `git commit`
- `co` is `git checkout`
- `br` is `git branch`
- `dc` is `git diff --cached`
- `amend` is `git commit -C HEAD --amend`
- All aliases just work when you use `sudo`
- Install and setup fzf (command, auto-completion, bindings)
- Enables colors and directories-first if GNU utils are available
- Sets shell language to English by default (`LANG="en_US.UTF-8"`)
- Any text can be safely pasted in iTerm2, xterm, without worrying it will execute
- `man` pages are colorful
## Anti-features
- Nothing for the right side of prompt (no mess when copying commands and their output)
- Doesn't show any git information in prompt (type `st` for git status)
## License
MIT