feat: add nosudo

This commit is contained in:
2026-06-25 10:46:07 +08:00
parent 0e7fe55474
commit e8aae9738b
9 changed files with 358 additions and 55 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ end
#################################################################
# git
# alias
alias gitb="git branch --show-current | tr -d '\n' | pbcopy"
alias gitb="git branch --show-current | tr -d '\n' | clip-copy.sh"
alias gci="golangci-lint run -c=~/.dotfile/golang/golangci.yml ./..."
alias gmt="go mod tidy"
alias gtc="go test -gcflags=all=-l -cover ./..."
+7
View File
@@ -0,0 +1,7 @@
function pwdc --description 'Copy current directory path to clipboard'
set -l dir (pwd -P)
if not printf '%s' $dir | clip-copy.sh
return 1
end
echo "Copied: "(string replace $HOME '~' $dir)
end