Compare commits
2 Commits
311245ea36
...
c8c0f56c95
| Author | SHA1 | Date | |
|---|---|---|---|
| c8c0f56c95 | |||
| bead27b2d8 |
@@ -19,7 +19,7 @@ export SVDIR="$XDG_STATE_HOME"/service
|
|||||||
|
|
||||||
# editor
|
# editor
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export SUDO_EDITOR=nvim
|
export SUDO_EDITOR="$(which $EDITOR)"
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
|
|
||||||
# sway
|
# sway
|
||||||
|
|||||||
@@ -67,6 +67,12 @@ if [[ -n "$WSL_DISTRO_NAME" ]]; then
|
|||||||
alias usbipd='usbipd.exe'
|
alias usbipd='usbipd.exe'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fix_corrupt_history() {
|
||||||
|
mv "$HISTFILE" "$HISTFILE"_bad
|
||||||
|
strings "$HISTFILE"_bad > "$HISTFILE"
|
||||||
|
fc -R "$HISTFILE"
|
||||||
|
}
|
||||||
|
|
||||||
# GPG setup (and SSH)
|
# GPG setup (and SSH)
|
||||||
# SSH setup
|
# SSH setup
|
||||||
# I finally figured out how to export my id_rsa from GPG using
|
# I finally figured out how to export my id_rsa from GPG using
|
||||||
@@ -119,8 +125,10 @@ for plugin in zsh-syntax-highlighting zsh-history-substring-search zsh-autosugge
|
|||||||
possible_locations=(
|
possible_locations=(
|
||||||
# Standard location
|
# Standard location
|
||||||
"/usr/share/zsh/plugins/$plugin/$plugin.zsh"
|
"/usr/share/zsh/plugins/$plugin/$plugin.zsh"
|
||||||
# Nix
|
# Nix default profile
|
||||||
"/nix/var/nix/profiles/default/share/$plugin/$plugin.zsh"
|
"/nix/var/nix/profiles/default/share/$plugin/$plugin.zsh"
|
||||||
|
# Nix per-user profile
|
||||||
|
"$HOME/.nix-profile/share/$plugin/$plugin.zsh"
|
||||||
# Direct in /usr/share
|
# Direct in /usr/share
|
||||||
"/usr/share/$plugin/$plugin.zsh"
|
"/usr/share/$plugin/$plugin.zsh"
|
||||||
# Home directory locations
|
# Home directory locations
|
||||||
|
|||||||
Reference in New Issue
Block a user