zsh ~/.z

vim ~/.zshrc

# ~/.zshrc

# Env setup
export ZSH="$HOME/.oh-my-zsh"

# SSH agent setup (before plugin load)
zstyle :omz:plugins:ssh-agent identities ~/.ssh/id_ed25519
zstyle :omz:plugins:ssh-agent lazy yes
zstyle :omz:plugins:ssh-agent lifetime 4h

# Oh My Zsh config
ZSH_THEME="robbyrussell"
plugins=(debian common-aliases colored-man-pages git fzf grc zoxide ssh-agent)

# Load Oh My Zsh and extra plugins
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlig
Tags

omz plugin info

  1. share history

Tags

Zsh-Widget: ALT+#

Mit diesem Code wird die Tastenkombination Alt + # (Esc + #) verwendet, 
um ein Hashtag am Anfang der aktuellen Zeile einzufügen.

insert_hashtag_at_beginning() {
 BUFFER="#$BUFFER"
 CURSOR=$((CURSOR + 1))
 zle redisplay
}

zle -N insert_hashtag_at_beginning
bindkey '\e#' insert_hashtag_at_beginning
 

Tags