tre revised this gist 4 hours ago. Go to revision
1 file changed, 22 insertions
.zshrc(file created)
| @@ -0,0 +1,22 @@ | |||
| 1 | + | export PATH=~/.local/bin:$PATH | |
| 2 | + | ||
| 3 | + | # case-insensitive autocomplete | |
| 4 | + | autoload -Uz +X compinit && compinit | |
| 5 | + | zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' | |
| 6 | + | zstyle ':completion:*' menu select | |
| 7 | + | ||
| 8 | + | # commands | |
| 9 | + | alias ffx="~/Documents/proj/utils/ffx.sh" | |
| 10 | + | alias gimp="~/.local/bin/GIMP-3.0.4-x86_64.AppImage" | |
| 11 | + | alias scrobble="python3 ~/Documents/proj/utils/scrobble.py" | |
| 12 | + | alias otd="python3 ~/Documents/proj/utils/otd.py" | |
| 13 | + | alias track="cd ~/Documents/proj/trackers && ./build.sh && cd -" | |
| 14 | + | alias updatesite="cd ~/Documents/proj/notes && ./build.sh && cd -" | |
| 15 | + | ||
| 16 | + | # prompt + tab titles | |
| 17 | + | PS1="%~ %% " | |
| 18 | + | export PROMPT_COMMAND='printf "\033]0;%s\007" "${PWD/#$HOME/~}"' | |
| 19 | + | precmd() { eval "$PROMPT_COMMAND" } | |
| 20 | + | ||
| 21 | + | # this has to go last | |
| 22 | + | source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
Newer
Older