guest@dotshare [~/groups/misc/misc] $ ls zshrc/ | cat

zshrc (scrot, raw, dl)

Maran Aug 31, 2024 (misc/misc)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# ───────────────────────────────────────────────────────────────────────────────
# ZSH CONFIGURATION: Visual Enhancements & Useful Plugins
# ───────────────────────────────────────────────────────────────────────────────

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"

# ───────────────────────────────────────────────────────────────────────────────
# THEME CONFIGURATION
# ───────────────────────────────────────────────────────────────────────────────

# Set theme to 'agnoster' for a minimalist, powerline-style prompt
ZSH_THEME="agnoster"

# ───────────────────────────────────────────────────────────────────────────────
# PLUGINS CONFIGURATION
# ───────────────────────────────────────────────────────────────────────────────

# Enable core plugins
plugins=(
  git                          # Git integration
  zsh-syntax-highlighting      # Syntax highlighting
  zsh-autosuggestions          # Command suggestions
  zsh-completions              # Better completions for various commands
  autojump                     # Fast directory navigation
)

# ───────────────────────────────────────────────────────────────────────────────
# ZSH OPTIONS & CUSTOMIZATIONS
# ───────────────────────────────────────────────────────────────────────────────

# Enable auto-correction
ENABLE_CORRECTION="true"

# Case-insensitive completion
CASE_SENSITIVE="false"

# Auto-correct commands as you type
setopt CORRECT

# Do not beep on error
setopt NO_BEEP

# Enable auto-changing to a directory if only the directory name is typed
setopt AUTO_CD

# Enable sharing history across sessions
setopt SHARE_HISTORY

# Ignore duplicate entries in history
setopt HIST_IGNORE_DUPS

# Disable duplicate command history entries
setopt HIST_FIND_NO_DUPS

# Load oh-my-zsh
source $ZSH/oh-my-zsh.sh

# ───────────────────────────────────────────────────────────────────────────────
# ALIASES & SHORTCUTS
# ───────────────────────────────────────────────────────────────────────────────

# Handy shortcuts for common commands
alias ll='ls -lah --color=auto'
alias grep='grep --color=auto'
alias gs='git status'
alias gp='git push'
alias gc='git commit -m'
alias c='clear'
alias x='exit'
alias zshconf='nvim ~/.zshrc'
alias alacritty='nvim ~/.config/alacritty/alacritty.yml'
alias alacrittylooks='~/.config/alacritty/alacritty.toml'
alias vimconf='nvim ~/.vimrc'
alias viminfo='nvim ~/.viminfo'
alias mpvconf='nvim ~/.config/mpv/mpv.conf'
alias mpvinput='nvim ~/.config/mpv/input.conf'
alias nvimconf='nvim ~/.config/nvim/init.vim'
alias neofetchconf='nvim ~/.config/neofetch/config.conf'
alias webconf='nvim ~/.config/website/index.html'
alias ytmp3='yt-dlp -x --audio-format mp3 '
alias ytf='yt-dlp -F '
alias ytvid='yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" -o "~/Videos/%(title)s.%(ext)s"'


# ───────────────────────────────────────────────────────────────────────────────
# AUTOSUGGESTIONS SETTINGS
# ───────────────────────────────────────────────────────────────────────────────

# Make suggestions more visible
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#d19a66"

# ───────────────────────────────────────────────────────────────────────────────
# SYNTAX HIGHLIGHTING SETTINGS
# ───────────────────────────────────────────────────────────────────────────────

# Highlighting options
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)

# ───────────────────────────────────────────────────────────────────────────────
# HISTORY CONFIGURATION
# ───────────────────────────────────────────────────────────────────────────────

# History file
HISTFILE=~/.zsh_history

# History size
HISTSIZE=10000
SAVEHIST=10000

# ───────────────────────────────────────────────────────────────────────────────
# PROMPT CUSTOMIZATION
# ───────────────────────────────────────────────────────────────────────────────

# Set prompt to include user, host, and current directory
PROMPT='%F{cyan}%n%f@%F{yellow}%m %F{green}%~%f %# '

# ───────────────────────────────────────────────────────────────────────────────
# VISUAL ENHANCEMENTS
# ───────────────────────────────────────────────────────────────────────────────

# Enable colors in terminal output
autoload -U colors && colors

# Add more eye candy to the terminal
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

# ───────────────────────────────────────────────────────────────────────────────
# PATH CONFIGURATION
# ───────────────────────────────────────────────────────────────────────────────

# Custom paths
export PATH="$HOME/bin:/usr/local/bin:$PATH"

# ───────────────────────────────────────────────────────────────────────────────

# autojump
if [ -f /usr/share/autojump/autojump.zsh ]; then
    . /usr/share/autojump/autojump.zsh
fi

# -------------------------------------------------------------------------------

# FINAL SETUP
# ───────────────────────────────────────────────────────────────────────────────

# Source additional scripts or configurations
if [ -f ~/.zshrc_custom ]; then
  source ~/.zshrc_custom
fi

# Source the plugins
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

# Reload shell configuration
source $ZSH/oh-my-zsh.sh

CLICK TO VIEW

x