Skip to main content

zsh config void

cat .zshrc

PROMPT='%B%F{cyan}👤%n@💻%m %F{blue}📂%~ %f%b'
autoload -Uz compinit
compinit

HISTFILE=~/.zsh_history
HISTSIZE=100
SAVEHIST=100

export EDITOR="nano"

alias ll='ls -lh'
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'


export PATH=$PATH:~/.bin

source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh


sudo xbps-install zsh-autosuggestions zsh-syntax-highlighting


zsh-autosuggestions

fish like completion

https://github.com/zsh-users/zsh-autosuggestions

press right arrow to accpt suggetion

 

move it to custom folder

 cat .zshenv
export ZDOTDIR="$HOME/.zsh"

 -----------------------------------------------------------------------------------------------------------------

cat ~/.zsh/.zshrc 

-----------------------------------------------------------------------------------------------------------------

PROMPT='%B%F{cyan}%n@%m %F{blue}%~ %f%b'

autoload -Uz compinit
compinit

setopt MENU_COMPLETE  
setopt AUTO_LIST  
setopt COMPLETE_IN_WORD
setopt HIST_SAVE_NO_DUPS

# Use case-insensitive completion and fuzzy match
zstyle ':completion:*:mkdir:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'

zstyle ':completion:*' complete true

zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$HOME/.zsh/cache"

zle -C alias-expension complete-word _generic
bindkey '^Xa' alias-expension
zstyle ':completion:alias-expension:*' completer _expand_alias
zstyle ':completion:*' menu select
zstyle ':completion:*' complete-options true
zstyle ':completion:*' file-sort modification
zstyle ':completion:*:functions' ignored-patterns '_*'


HISTFILE=~/.zsh_history
HISTSIZE=100
SAVEHIST=100

export EDITOR="nano"

alias ll='ls -lh'
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'


export PATH=$PATH:~/.bin

source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh


MOUSE=1
setopt autocd
 

 exp:

bindkey '^Xa' alias-expension 

 means ctrl+x followed by a to expand current alias without executing

 

  • Zsh Style Configuration (zstyle):
    • zstyle is used to define and set styles that customize various aspects of Zsh's behavior.
    • Styles can be defined for specific contexts and associated with configuration values.
    • Multiple styles can be defined for different contexts, allowing fine-tuning of Zsh's behavior.
    • Common uses include customizing tab completion, prompt themes, and other customizations.
  • Custom Widgets and Key Bindings (zle):
    • zle (Zsh Line Editor) is used to define custom functions, or widgets, that can be bound to keyboard keys or key sequences.
    • Widgets control aspects of command-line editing and user interactions in Zsh.
    • Widgets can perform actions like cursor movement, text insertion, or custom functionality.
    • Widgets are bound to keys or key sequences and invoked when those keys are pressed.
    • Custom widgets are used to tailor the behavior of the Zsh shell, enhancing command-line interactions.
  • Autoload and Compinit:
    • autoload -Uz compinit loads the compinit function, initializing and configuring Zsh's completion system.
    • compinit sets up completion functions, options, and settings for advanced and context-aware tab completion.
  • setopt MENU_COMPLETE:
    • Enables menu-based completion in Zsh, displaying a list of possible completions when the Tab key is pressed during tab completion.
    • Allows navigation and selection from the available options using arrow keys or other navigation keys.
  • setopt AUTO_LIST:
    • Enables automatic listing of completions as you type, without explicitly pressing Tab.
    • Provides immediate feedback on possible completions, improving efficiency.
  • setopt COMPLETE_IN_WORD:
    • Attempts to complete the word being typed, even if the cursor is not at the end of the word.
    • Allows for more interactive word completion in the middle of a sentence.
  • Completion Options:
    • zstyle ':completion:*' complete true enables general completion mechanisms in various contexts.
    • zstyle ':completion:*' complete-options true configures specific completion options, such as auto_list and auto_menu.
  • Function Name Completion Configuration:
    • zstyle ':completion:alias-expension:*' completer _expand_alias customizes alias expansion during tab completion.
    • zstyle ':completion:*:functions' ignored-patterns '_*' ignores function names starting with underscores in tab completion.
  • Zsh Configuration Files:
    • Custom configurations, including zstyle, zle, and setopt commands, are typically placed in ~/.zshrc to customize the Zsh shell's behavior.

     

 

 
 
 

 

Comments

Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

xbps-install  sxhkd ------------ mkdir .config/sxhkd cd .config/sxhkd nano/vim sxhkdrc -------------------------------- XF86AudioRaiseVolume         amixer -c 1 -- sset Master 2db+ XF86AudioLowerVolume         amixer -c 1 -- sset Master 2db- XF86AudioMute         amixer -c 1 -- sset Master toggle alt + shift + Escape         pkill -USR1 -x sxhkd XF86MonBrightnessUp          xbacklight -inc 20 XF86MonBrightnessDown          xbacklight -dec 20 ------------------------------------------------------------- amixer -c card_no -- sset Interface volume run alsamixer to find card no and interface names xbps-install -S git git clone https://git.suckless.org/dwm xbps-install -S base-devel libX11-devel libXft-devel libXinerama-devel  vim config.mk # FREETYPEINC = ${X11INC}/freetype2 #comment for non-bsd make clean install   cp config.def.h config.h vim config.h xbps-install -S font-symbola #for emoji on statusbar support     void audio config xbps-i

download office 2021 and activate

get office from here  https://tb.rg-adguard.net/public.php open powershell as admin (win+x and a ) type cmd  goto insall dir 1.         cd /d %ProgramFiles(x86)%\Microsoft Office\Office16 2.           cd /d %ProgramFiles%\Microsoft Office\Office16 try 1 or 2 depending on installation  install volume license  for /f %x in ('dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" activate using kms cscript ospp.vbs /setprt:1688 cscript ospp.vbs /unpkey:6F7TH >nul cscript ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH cscript ospp.vbs /sethst:s8.uk.to cscript ospp.vbs /act Automatic script (windefender may block it) ------------------------------------------------------------------------------------------------------------------- @echo off title Activate Microsoft Office 2021 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&

Hidden Wiki

Welcome to The Hidden Wiki New hidden wiki url 2015 http://zqktlwi4fecvo6ri.onion Add it to bookmarks and spread it!!! Editor's picks Bored? Pick a random page from the article index and replace one of these slots with it. The Matrix - Very nice to read. How to Exit the Matrix - Learn how to Protect yourself and your rights, online and off. Verifying PGP signatures - A short and simple how-to guide. In Praise Of Hawala - Anonymous informal value transfer system. Volunteer Here are five different things that you can help us out with. Plunder other hidden service lists for links and place them here! File the SnapBBSIndex links wherever they go. Set external links to HTTPS where available, good certificate, and same content. Care to start recording onionland's history? Check out Onionland's Museum Perform Dead Services Duties. Introduction Points Ahmia.fi - Clearnet search engine for Tor Hidden Services (allows you