started cleaning up windows files
This commit is contained in:
parent
dcf1f96dcb
commit
65e386acac
@ -9,7 +9,8 @@ My dotfiles for both Arch Linux and Windows
|
|||||||
```sh
|
```sh
|
||||||
git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot
|
git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot
|
||||||
alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"'
|
alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"'
|
||||||
|
dot checkout
|
||||||
|
dot config --local status.showUntrackedFiles no
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -36,7 +37,7 @@ dot push
|
|||||||
|
|
||||||
### Checking out the repo
|
### Checking out the repo
|
||||||
|
|
||||||
```ps
|
```ps1
|
||||||
PowerShell -NoProfile -ExecutionPolicy Bypass
|
PowerShell -NoProfile -ExecutionPolicy Bypass
|
||||||
git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot
|
git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot
|
||||||
if (!(Test-Path -Path $PROFILE)) {
|
if (!(Test-Path -Path $PROFILE)) {
|
||||||
|
@ -9,8 +9,7 @@ Register-ArgumentCompleter -Native -CommandName winget -ScriptBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function touch($file) {
|
function dot { & git --git-dir="$HOME/.dot/" --work-tree="$HOME" @args }
|
||||||
"" | Out-File $file -Encoding ASCII
|
|
||||||
}
|
|
||||||
|
|
||||||
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
7
windows/aliases.ps1
Normal 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
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
param (
|
|
||||||
[Parameter(ValueFromRemainingArguments = $true)]
|
|
||||||
[string[]]$args
|
|
||||||
)
|
|
||||||
|
|
||||||
& git --git-dir=$env:USERPROFILE\.dot --work-tree=$env:USERPROFILE @args
|
|
Loading…
Reference in New Issue
Block a user