changes to modules + adoption of PC
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
function clone-starter
|
||||
if test (count $argv) -eq 0
|
||||
echo "Usage: clone-starter <project-name>"
|
||||
return 1
|
||||
end
|
||||
|
||||
set project_name $argv[1]
|
||||
|
||||
git clone https://github.com/pure-sagacity/turborepo-starter-project.git $project_name
|
||||
|
||||
if test $status -ne 0
|
||||
echo "Error: git clone failed"
|
||||
return 1
|
||||
end
|
||||
|
||||
rm -rf $project_name/.git
|
||||
|
||||
echo "✓ Created $project_name (git history removed)"
|
||||
end
|
||||
@@ -0,0 +1,20 @@
|
||||
function copy
|
||||
if test (count $argv) -eq 0
|
||||
echo "Usage: copy <file>"
|
||||
return 1
|
||||
end
|
||||
|
||||
if not test -f $argv[1]
|
||||
echo "Error: File '$argv[1]' not found"
|
||||
return 1
|
||||
end
|
||||
|
||||
cat $argv[1] | wl-copy
|
||||
|
||||
if test $status -eq 0
|
||||
echo "Copied contents of '$argv[1]' to clipboard"
|
||||
else
|
||||
echo "Error: Failed to copy to clipboard"
|
||||
return 1
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
function generateSecret
|
||||
openssl rand -base64 32 | pbcopy
|
||||
|
||||
echo "Copied secret to clipboard!"
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
function wipedns
|
||||
sudo dscacheutil -flushcache
|
||||
sudo killall -HUP mDNSResponder
|
||||
end
|
||||
Reference in New Issue
Block a user