Some minor tweaks
This commit is contained in:
parent
de89545cb0
commit
6bd8dd336c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
2
env/10_path.zsh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue