feat: add nosudo
This commit is contained in:
+1
-1
@@ -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 ./..."
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user