zsh: include

This commit is contained in:
2026-03-31 16:48:52 +02:00
parent 6986e3c8d2
commit 7519fe3840
7 changed files with 50 additions and 18 deletions

View File

@@ -2,7 +2,6 @@ PATH=$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$HOM
EDITOR=hx
VISUAL=hx
_JAVA_AWT_WM_NONREPARENTING=1
SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# support jp input in gnome
GTK_IM_MODULE=ibus

View File

@@ -41,7 +41,7 @@ t() {
tmux new-session -A -s ${1:-tmux}
}
z() {
zellij a ${1:-dev} 2> /dev/null || zellij -s ${1:-dev}
zellij attach ${1:-dev} 2> /dev/null || zellij -s ${1:-dev}
}
# password hash (sed needed when using in docker-compose)

29
files/shell/.zshrc Normal file
View File

@@ -0,0 +1,29 @@
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git colored-man-pages rust ssh-agent)
zstyle :omz:plugins:ssh-agent helper sshaskpass
bindkey ^F forward-word
bindkey ^B backward-word
source $ZSH/oh-my-zsh.sh
[ -f ~/.shellrc.alias ] && source ~/.shellrc.alias
[ -f ~/.shellrc.local ] && source ~/.shellrc.local