diff options
| -rwxr-xr-x | aliases.zsh | 4 | ||||
| -rwxr-xr-x | env.zsh | 8 | ||||
| -rwxr-xr-x | func.zsh | 4 | ||||
| -rw-r--r-- | git.alias.zsh | 3 | ||||
| -rwxr-xr-x | options.zsh | 2 | ||||
| -rw-r--r-- | pacman.alias.zsh | 2 |
6 files changed, 17 insertions, 6 deletions
diff --git a/aliases.zsh b/aliases.zsh index dd2583c..bf4f82a 100755 --- a/aliases.zsh +++ b/aliases.zsh @@ -25,7 +25,7 @@ alias fm='ranger' alias cat="bat --plain --pager=never" # alias grep='grep --color=auto' -alias grep='rg --no-heading --with-filename -F' +alias grep='rg --no-heading --with-filename --smart-case -F' alias mv='mv -v' alias cp='cp --reflink=auto -vr' alias rm='trash -v' @@ -48,7 +48,7 @@ alias chatgpt='chat' # better ls if [ $DISPLAY ]; then # alias ls='lsd' - alias ls="eza --color=auto --icons=always" + alias ls="eza --color=auto --icons=always --hyperlink" else alias ls="eza --color=auto" fi @@ -16,7 +16,7 @@ export PATH="$PATH:$HOME/go/bin" export GPG_TTY="${TTY:-$(tty)}" export SUDO_PROMPT="pass: " export TERMINAL="kitty" export BROWSER="zen-browser" -export VISUAL="nvim" +export VISUAL="hx" export EDITOR="$VISUAL" export PATH=$PATH:/home/system/.spicetify @@ -92,6 +92,10 @@ export LESS='-R ' # export LANG="zh_CN.UTF-8" -# vim:ft=zsh:nowrap +# Begin added by argcomplete +fpath=( /home/system/.local/lib/python3.13/site-packages/argcomplete/bash_completion.d "${fpath[@]}" ) +# End added by argcomplete source $HOME/.config/zsh/env.local.zsh + +# vim:ft=zsh:nowrap @@ -438,3 +438,7 @@ function createrepo() { gh repo create $1 --add-readme --license gpl-3.0 ${@:2} --public # tea repo create --name $1 --init --readme Default --license gpl3 --branch main ${@:2} } + +function tempsend() { + bw send $@ 2>/dev/null | jq -r '.accessUrl' +} diff --git a/git.alias.zsh b/git.alias.zsh index 113f4d9..923dec8 100644 --- a/git.alias.zsh +++ b/git.alias.zsh @@ -167,7 +167,7 @@ alias gd='git diff' # alias gpsup='git push --set-upstream origin $(git_current_branch)' # alias gpu='git push upstream' # alias gpv='git push -v' -alias gpd='git push origin --delete' +# alias gpd='git push origin --delete' alias gr='git remote' # alias gra='git remote add' # alias grb='git rebase' @@ -245,6 +245,7 @@ alias gca='git commit --verbose -S -am' # alias gp='git push origin main' # alias gp='git remote | xargs -L1 git push --all' # moved to funcs alias gp='git remote | xargs -L1 git push' +alias gpd='git remote | xargs -L1 git push --delete' # alias gpf='git push --force-with-lease' alias gitp='git remote | xargs -L1 git pull' alias gs='git status' diff --git a/options.zsh b/options.zsh index c7288c0..795c5bf 100755 --- a/options.zsh +++ b/options.zsh @@ -100,7 +100,7 @@ setopt histignorealldups unsetopt HIST_VERIFY setopt NO_NOMATCH setopt dotglob - +setopt extendedglob # vim:filetype=zsh:nowrap # aaa diff --git a/pacman.alias.zsh b/pacman.alias.zsh index 2431988..4a7f6b2 100644 --- a/pacman.alias.zsh +++ b/pacman.alias.zsh @@ -30,10 +30,12 @@ alias pif='pacman --noconfirm --force -S --needed' alias pifd='pacman -Sd --needed --nodeps' alias pio='pacman --noconfirm -S --overwrite "*" --needed' alias prio='pacman --noconfirm -S --overwrite "*"' +alias priob='pacman --noconfirm -S --overwrite "*" --rebuild' #alias ps='pacman --noconfirm -S --needed' alias pr='pacman --noconfirm -Rns' alias prndep='pacman --noconfirm -Rnsd --nodeps' alias pri='pacman --noconfirm -S' +alias prib='pacman --noconfirm -S --rebuild' alias pc='pacman -Scc' alias clean='pacman -Scc' alias pf='pacman --noconfirm ' |
