summaryrefslogtreecommitdiff
path: root/aliases.zsh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-11-16 22:09:37 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-11-16 22:09:37 +0800
commitb53510087faa1045656e34a31ec50de221a90b24 (patch)
tree4ba72b509784f48dec73188a43f5fef382cfbdd2 /aliases.zsh
parentd507f878e6ec1e464fe29f39d73804740978b9a7 (diff)
change: alias gp -> func
add: pio alias for overwrite
Diffstat (limited to 'aliases.zsh')
-rwxr-xr-xaliases.zsh7
1 files changed, 5 insertions, 2 deletions
diff --git a/aliases.zsh b/aliases.zsh
index 71b42ff..3f0b30c 100755
--- a/aliases.zsh
+++ b/aliases.zsh
@@ -227,7 +227,7 @@ gcl() { git clone --recurse-submodules $@ || gh repo clone $@ -- --recurse-submo
alias gc='git commit --verbose -S -m'
alias gca='git commit --verbose -S -am'
# alias gp='git push origin main'
-alias gp='git remote | xargs -L1 git push --all'
+# alias gp='git remote | xargs -L1 git push --all' # moved to funcs
alias gitp='git remote | xargs -L1 git pull'
alias gs='git status'
alias gitrm='git rm --cached -rf'
@@ -456,6 +456,7 @@ alias pidep='pacman --noconfirm -S --asdeps --needed'
alias pindep='pacman --noconfirm -Sd --nodeps'
alias pif='pacman --noconfirm --force -S --needed'
alias pifd='pacman -Sd --needed --nodeps'
+alias pio='pacman --noconfirm -S --overwrite "*" --needed'
#alias ps='pacman --noconfirm -S --needed'
alias pr='pacman --noconfirm -Rns'
alias prndep='pacman --noconfirm -Rnsd --nodeps'
@@ -528,7 +529,7 @@ alias processfind='ps -aux | grep -v grep | grep'
alias processf='processfind'
alias pf='processfind'
-alias code='cursor'
+# alias code='cursor'
# help
@@ -569,3 +570,5 @@ alias cpups='sudo cpupower frequency-set -g powersave'
# better time benchmark
alias time='hyperfine --warmup 3 -N'
+
+function \?\?() { file=$(mktemp) && gh copilot suggest -t shell $@ --shell-out $file && eval $(cat $file) && rm $file; }