summaryrefslogtreecommitdiff
path: root/aliases.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'aliases.zsh')
-rwxr-xr-xaliases.zsh8
1 files changed, 3 insertions, 5 deletions
diff --git a/aliases.zsh b/aliases.zsh
index 3d13fa4..949b170 100755
--- a/aliases.zsh
+++ b/aliases.zsh
@@ -79,7 +79,6 @@ alias gcb='git checkout -b'
alias gcd='git checkout $(git_develop_branch)'
alias gcf='git config --list'
alias gclr='git clone --recurse-submodules'
-alias gicl='git clone'
alias gcld='git clone --depth'
alias gclean='git clean -id'
alias gcm='git checkout $(git_main_branch)'
@@ -216,7 +215,7 @@ alias gupav='git pull --rebase --autostash -v'
alias gupv='git pull --rebase -v'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"'
-alias gicl='git clone --depth 1 --recurse-submodules'
+alias gcl='git clone --recurse-submodules'
alias gi='git init'
alias gl='git log'
#alias ga='git add'
@@ -232,8 +231,7 @@ alias g='git'
alias gsb='git switch'
alias gcb='git checkout -b'
alias gu='ga && gc update && git push'
-# alias ghcl='gh repo clone' #-- --recurse-submodules'
-gcl() { gh repo clone $@ -- --recurse-submodules }
+ghcl() { gh repo clone $@ -- --recurse-submodules }
alias ghdb='git push origin --delete'
alias ghcr='gh repo create'
alias ghpr='gh pr'
@@ -444,7 +442,7 @@ alias update='sudo npm update -g & nix-env -u & brew update & yay -Sl > /tmp/yay
alias upgrade='update'
# more pacman alis
alias packagelistignoreall='paru --color always -Sl | sed -e "s: :/:; s/ unknown-version//; /已安装/d" | fzf --multi --ansi --preview "yay -Si {1}" | cut -d" " -f1 | xargs -ro yay -S'
-alias packagelist='paru --color always -Sl | fzf --multi --ansi --preview "yay -Si {1}" | cut -d" " -f1 | xargs -ro yay -S'
+alias packagelist='paru --color always -Sl | fzf --multi --ansi --preview "yay -Si {2}" | awk '{print $2}' | xargs -ro yay -S'
# alias packagelist='paru --color always -Sl | sed -e "s: :/:; /unknown-version/d" | fzf --multi --ansi --preview "yay -Si {1}" | cut -d" " -f1 | xargs -ro yay -S'
alias packagef="/usr/bin/cat /tmp/yaySl | cut -d' ' -f2 | fzf --multi --ansi --preview 'yay -Si {1}' | xargs -ro paru -S --skipreview --needed"
alias package='packagelist'