Some minor tweaks

This commit is contained in:
crater2150 2021-06-18 12:09:38 +02:00
parent de89545cb0
commit 6bd8dd336c
4 changed files with 9 additions and 3 deletions

View file

@ -6,7 +6,9 @@ hashafter xi
hashafter xbps-remove
alias xq="xbps-query -Rs"
xq() {
xbps-query -Rs "$@" | grep -v -- '-32bit'
}
xqn() {
if [[ -z $1 || -n $2 ]]; then
<<-HERE

View file

@ -56,7 +56,7 @@ local function zle-line-finish () {
zle -N zle-line-init
zle -N zle-line-finish
insert_sudo () { zle beginning-of-line; zle -U "sudo "; zle end-of-line }
insert_sudo () { LBUFFER="sudo ${LBUFFER}" }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo

View file

@ -60,3 +60,7 @@ compdef _command fork
compdef _command detach
compdef _command ontv
compdef _notmuch nmfind=notmuch-search
if exists kitty; then
kitty + complete setup zsh | source /dev/stdin
fi

2
env/10_path.zsh vendored
View file

@ -1,4 +1,4 @@
export PATH="$HOME/.local/bin:$PATH"
if [[ -d ${XDG_DATA_HOME:-$HOME/.local/share}/coursier/bin ]]; then
export PATH="${XDG_DATA_HOME:-$HOME/.local/share}/coursier/bin:$PATH"
export PATH="$PATH:${XDG_DATA_HOME:-$HOME/.local/share}/coursier/bin"
fi