Last active
August 28, 2025 18:46
-
-
Save IanKatsy/255c3e6435fd997e7e8aba1ac77bfae5 to your computer and use it in GitHub Desktop.
zsh config
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
| # Something something my dumb zsh config | |
| # Lets hope i dont lose it again | |
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.shell/.zhistory | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| bindkey -e | |
| zstyle :compinstall filename '/home/ian/.zshrc' | |
| autoload -Uz compinit | |
| compinit | |
| autoload -U colors && colors | |
| user_color="%F{208}" # Orange | |
| root_color="%F{196}" # Red | |
| host_color="%F{81}" # Light blue | |
| reset_color="%f" | |
| if [[ $EUID -eq 0 ]]; then | |
| userpart="${root_color}%n${reset_color}" | |
| prompt_symbol="#" | |
| else | |
| userpart="${user_color}%n${reset_color}" | |
| prompt_symbol=">" | |
| fi | |
| # <USER>@<HOST> <PATH> <SYMBOL> | |
| # Orange for user, red for root | |
| # Currently using this in frostbyte, thats why host is lightblue | |
| PROMPT="${userpart}${host_color}@%m${reset_color} %~ ${prompt_symbol} " | |
| # Random Bs From .bashrc | |
| # alias ls='ls --color=auto' | |
| alias grep='grep --color=auto' | |
| # PS1='[\u@\h \W]\$ ' # what? | |
| export PATH=$HOME/.local/bin:$PATH | |
| # Make sure eza is installed, else use normal ls | |
| if command -v eza &> /dev/null; then | |
| alias ls='eza --icons=always --color=always' | |
| else | |
| alias ls='ls --color=auto' | |
| fi | |
| # Binds | |
| # Use cat -v | |
| bindkey "^[[3~" delete-char # DELETE key | |
| bindkey "^[[3;5~" kill-word # CTRL + DELETE | |
| bindkey "^[[1;5D" backward-word # CTRL + LEFT | |
| bindkey "^[[1;5C" forward-word # CTRL + RIGHT | |
| # bun | |
| export BUN_INSTALL="$HOME/.bun" | |
| export PATH="$BUN_INSTALL/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment