Last active
November 6, 2025 17:56
-
-
Save omerferhatt/d54f2301a674de831270d614d5b776c5 to your computer and use it in GitHub Desktop.
zsh configuration
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
| # Enable persistent history | |
| HISTFILE=~/.zsh_history | |
| HISTSIZE=100000 | |
| SAVEHIST=100000 | |
| setopt HIST_SAVE_NO_DUPS | |
| setopt INC_APPEND_HISTORY | |
| # Add left-right arrow key navigation | |
| bindkey "^[[1;5C" forward-word | |
| bindkey "^[[1;5D" backward-word | |
| # Move to directories without cd | |
| setopt autocd | |
| # Initialize completion | |
| autoload -U compinit; compinit | |
| # The most important aliases ever | |
| alias l='ls -lah' | |
| alias la='ls -lAh' | |
| alias ll='ls -lh' | |
| alias ls='ls -G' | |
| alias lsa='ls -lah' | |
| # Set up fzf key bindings and fuzzy completion | |
| [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
| # Set up syntax highlightning and auto-suggestions | |
| source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
| source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh | |
| # Set up path | |
| export PATH="$HOME/.local/bin:$PATH" | |
| # Set up the Starship prompt | |
| eval "$(starship init zsh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment