summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-10-25 10:20:19 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-10-25 10:20:19 +0800
commit5a79c24580d935ad9c3febf7911da2ecc82e03ee (patch)
treeb042560ae39c6e5540b90e4943c08889478506f4
parentb5b44bf86f8b5976f916abe7ad23efde89e8f32e (diff)
t
-rwxr-xr-xaliases.zsh4
-rwxr-xr-xenv.zsh8
-rwxr-xr-xfunc.zsh4
-rw-r--r--git.alias.zsh3
-rwxr-xr-xoptions.zsh2
-rw-r--r--pacman.alias.zsh2
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
diff --git a/env.zsh b/env.zsh
index 6d505b8..40f197c 100755
--- a/env.zsh
+++ b/env.zsh
@@ -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
diff --git a/func.zsh b/func.zsh
index c57ee2a..a8191ea 100755
--- a/func.zsh
+++ b/func.zsh
@@ -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 '