-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
32 lines (25 loc) · 1.02 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
#!/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