Created
July 12, 2024 20:32
-
-
Save CorneliusCornbread/6b35c5fc71976480f1372f6e7fe0dc5b to your computer and use it in GitHub Desktop.
My zsh custom script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typeset -A ZSH_HIGHLIGHT_STYLES | |
| # Custom ZSH config file | |
| ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=244" | |
| # 'c' will clear the console | |
| alias c="clear" | |
| alias cr="clear && cd ~" | |
| # alias for doas | |
| alias sudo="doas" | |
| # alias for eza | |
| alias ls="eza -a --icons" | |
| # alias for zoxide | |
| alias cd="z" | |
| # alias for fastfetch | |
| alias neofetch='fastfetch' | |
| alias packwiz='~/packwiz' | |
| # TEMPORARY: dnf5 alias | |
| alias dnf='dnf5' | |
| # The Fuck, uses 'fuck' | |
| eval $(thefuck --alias fuck) | |
| # Zoxide, uses 'z' | |
| eval "$(zoxide init zsh)" | |
| # Color for most things | |
| reg_color="#2196eb" | |
| # Cursor type, bar vs rectangle, also configurable in Yakuake too | |
| #echo -ne '\e[5 q' | |
| # Syntax highlighting colors | |
| ZSH_HIGHLIGHT_STYLES[command]="fg=$reg_color" | |
| ZSH_HIGHLIGHT_STYLES[builtin]="fg=$reg_color" | |
| # Underline paths | |
| ZSH_HIGHLIGHT_STYLES[path]="fg=cyan,underline" | |
| # Default stuff to cyan | |
| ZSH_HIGHLIGHT_STYLES[default]="fg=cyan" | |
| # Change argument color | |
| ZSH_HIGHLIGHT_STYLES[single-hyphen-option]="fg=cyan" | |
| ZSH_HIGHLIGHT_STYLES[double-hyphen-option]="fg=cyan" | |
| # To differentiate aliases from other command types | |
| ZSH_HIGHLIGHT_STYLES[global-alias]="fg=magenta,bold" | |
| ZSH_HIGHLIGHT_STYLES[alias]="fg=magenta,bold" | |
| ZSH_HIGHLIGHT_STYLES[suffix-alias]="fg=magenta,bold" | |
| ZSH_HIGHLIGHT_STYLES[function]="fg=magenta,bold" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment