-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.windows
28 lines (22 loc) · 1.12 KB
/
Makefile.windows
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
. = $(CURDIR)
XDG_CONFIG_HOME ?= ~/.config
SHELL := pwsh.exe
.SHELLFLAGS := -NoProfile -Command
.PHONY: dotfiles
dotfiles:
if (-not (Test-Path -Path ~/.dotfiles)) { New-Item -Value $(.) -Path ~ -Name .dotfiles -ItemType SymbolicLink }
.PHONY: editorconfig
editorconfig:
if (-not (Test-Path -Path ~/.editorconfig)) { New-Item -Value $(.)/.editorconfig -Path ~ -Name .editorconfig -ItemType SymbolicLink }
.PHONY: nvim
nvim:
if (-not (Test-Path -Path $(XDG_CONFIG_HOME)/nvim)) { New-Item -Value $(.)/nvim -Path $(XDG_CONFIG_HOME) -Name nvim -ItemType SymbolicLink }
.PHONY: ideavim
ideavim:
if (-not (Test-Path -Path ~/.ideavimrc)) { New-Item -Value $(.)/.ideavimrc -Path ~ -Name .ideavimrc -ItemType SymbolicLink }
.PHONY: wezterm
wezterm:
if (-not (Test-Path -Path $(XDG_CONFIG_HOME)/wezterm)) { New-Item $(XDG_CONFIG_HOME)/wezterm -ItemType Directory; New-Item -Value $(.)/wezterm.lua -Path $(XDG_CONFIG_HOME)/wezterm -Name wezterm.lua -ItemType SymbolicLink }
.PHONY: powershell
powershell:
if (-not (Test-Path -Path ~/Documents/Powershell)) { New-Item -Value $(.)/Powershell -Path ~/Documents -Name Powershell -ItemType SymbolicLink }