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

@@ -28,13 +28,14 @@ Use ./stow.sh --unstow <folder_name> to remove configuration
- allow microphone in steam: `sudo snap connect steam:audio-record :audio-record` - allow microphone in steam: `sudo snap connect steam:audio-record :audio-record`
- gamemode configuration: - gamemode configuration:
- renice=10 - renice=10
- diff for .ohmyzsh via patch files
## Software ## Software
### Basics ### Basics
``` ```
sudo apt install \ sudo apt install \
kitty tmux \ kitty tmux zsh \
git ripgrep fd-find fzf stow git ripgrep fd-find fzf stow
``` ```
@@ -66,6 +67,10 @@ sudo snap install \
steam steam
``` ```
```
cargo install --locked zellij
```
### Manual ### Manual
- [Helix](https://github.com/helix-editor/helix/releases) - [Helix](https://github.com/helix-editor/helix/releases)
@@ -78,7 +83,7 @@ sudo snap install \
$ mkdir -p ~/.config/nix/ $ mkdir -p ~/.config/nix/
$ echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf $ echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
``` ```
- [woverlay](https://codeberg.org/rtx/woverlay) - [ohmyzsh](https://ohmyz.sh/)
## Extensions ## Extensions

View File

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

View File

@@ -41,7 +41,7 @@ t() {
tmux new-session -A -s ${1:-tmux} tmux new-session -A -s ${1:-tmux}
} }
z() { 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) # 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

View File

@@ -1,4 +0,0 @@
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
ssh-add -D
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

13
ssh-agent-location.patch Normal file
View File

@@ -0,0 +1,13 @@
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
index 8354864..61462fd 100644
--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
@@ -24,7 +24,7 @@ function _start_agent() {
# start ssh-agent and setup environment
zstyle -t :omz:plugins:ssh-agent quiet || echo >&2 "Starting ssh-agent ..."
- ssh-agent -s ${lifetime:+-t} ${lifetime} | sed '/^echo/d' >! "$ssh_env_cache"
+ ssh-agent -a /tmp/agent.sock -s ${lifetime:+-t} ${lifetime} | sed '/^echo/d' >! "$ssh_env_cache"
chmod 600 "$ssh_env_cache"
. "$ssh_env_cache" > /dev/null
}

View File

@@ -1,10 +0,0 @@
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target