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-highligomz plugin info
share history
zsh + omz
- apt update
- apt install zsh curl wget git vim aptitude
- sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
- plugins omz-plugin-info
- vim ~/.zshrc
- omz reload
- omz plugin load debian; o
- vim ~/.zshrc
antigen
Antigen: Another process in running.
rm ~/.antigen/.lock
oderantigen reset
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