zsh: include
This commit is contained in:
@@ -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`
|
||||
- gamemode configuration:
|
||||
- renice=10
|
||||
- diff for .ohmyzsh via patch files
|
||||
|
||||
## Software
|
||||
|
||||
### Basics
|
||||
```
|
||||
sudo apt install \
|
||||
kitty tmux \
|
||||
kitty tmux zsh \
|
||||
git ripgrep fd-find fzf stow
|
||||
```
|
||||
|
||||
@@ -66,6 +67,10 @@ sudo snap install \
|
||||
steam
|
||||
```
|
||||
|
||||
```
|
||||
cargo install --locked zellij
|
||||
```
|
||||
|
||||
### Manual
|
||||
|
||||
- [Helix](https://github.com/helix-editor/helix/releases)
|
||||
@@ -78,7 +83,7 @@ sudo snap install \
|
||||
$ mkdir -p ~/.config/nix/
|
||||
$ echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
||||
```
|
||||
- [woverlay](https://codeberg.org/rtx/woverlay)
|
||||
- [ohmyzsh](https://ohmyz.sh/)
|
||||
|
||||
## Extensions
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
29
files/shell/.zshrc
Normal 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
|
||||
4
lock.sh
4
lock.sh
@@ -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
13
ssh-agent-location.patch
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user