started cleaning up windows files

This commit is contained in:
TheFlyingFool 2024-06-10 17:17:01 -05:00
parent dcf1f96dcb
commit 65e386acac
4 changed files with 14 additions and 13 deletions

View File

@ -9,7 +9,8 @@ My dotfiles for both Arch Linux and Windows
```sh
git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot
alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"'
dot checkout
dot config --local status.showUntrackedFiles no
source ~/.zshrc
```
@ -36,7 +37,7 @@ dot push
### Checking out the repo
```ps
```ps1
PowerShell -NoProfile -ExecutionPolicy Bypass
git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot
if (!(Test-Path -Path $PROFILE)) {
@ -48,4 +49,4 @@ if (!(Test-Path -Path $PROFILE)) {
dot checkout
dot config --local status.showUntrackedFiles no
"`n. `"$HOME/windows/Microsoft.PowerShell_profile.ps1`"" | Out-File -Append $PROFILE
```
```

View File

@ -9,8 +9,7 @@ Register-ArgumentCompleter -Native -CommandName winget -ScriptBlock {
}
function touch($file) {
"" | Out-File $file -Encoding ASCII
}
function dot { & git --git-dir="$HOME/.dot/" --work-tree="$HOME" @args }
function dot { & git --git-dir="C:\Users\User/.dot/" --work-tree="C:\Users\User" @args }
# Source the aliases.ps1 file
. "$PSScriptRoot/aliases.ps1"

7
windows/aliases.ps1 Normal file
View File

@ -0,0 +1,7 @@
function Upgrade-All { winget upgrade --all }
Set-Alias -Name Syu -Value Upgrade-All
function touch($file) {
"" | Out-File $file -Encoding ASCII
}

View File

@ -1,6 +0,0 @@
param (
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$args
)
& git --git-dir=$env:USERPROFILE\.dot --work-tree=$env:USERPROFILE @args