-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
40 lines (31 loc) · 1.35 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env -S just --justfile
# ^ A shebang isn't required, but allows a justfile to be executed
# like a script, with `./justfile test`, for example.
# Show available commands
default:
@just --list --justfile {{justfile()}}
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
# Symlink all the dotfiles to the home directory
stow: && dump
stow . -v
dump:
brew bundle dump --file=./Brewfile --force
clean-targets:
find ~/git -name target -exec rm -rf {} \;
# Fixes the issue if my bluetooth headphones aren't playing the music but are connected to my computer.
restart-pulseaudio:
systemctl --user restart pipewire pipewire-pulse
# Syncs the cursor settings to my home directory, run on MacOS after updating Cursor.
sync-cursor:
#!/bin/bash
if [ ! -L "~/Library/Application Support/Cursor/User" ]; then
echo "Cursor symlink broken, fixing..."
rm -rf ~/Library/Application\ Support/Cursor/User
ln -s ~/.config/Cursor/User ~/Library/Application\ Support/Cursor/User
fi
# Exports all the npm global packages to a file, so we can import them later.
export-npm-global-packages:
pnpm list -g --depth=0 --json | jq -r '.dependencies | keys | .[]' > global-packages.txt
# Installs all the npm global packages from the file
install-npm-global-packages:
cat global-packages.txt | xargs pnpm install -g