Readme file and small tweak
This commit is contained in:
parent
5b6b18ebe4
commit
37505a6e3c
2 changed files with 10 additions and 3 deletions
7
readme.md
Normal file
7
readme.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Doty's init files
|
||||
|
||||
This is a git repo for your dotfiles. You know, like you do.
|
||||
|
||||
On Windows, clone this into your home directory (so that it lives in
|
||||
~/Init-Files) and run setup.cmd to get everything linked into the right
|
||||
place.
|
||||
|
|
@ -6,11 +6,11 @@ function new-link($link, $target) {
|
|||
}
|
||||
}
|
||||
|
||||
$ignore = @(".gitignore", "setup.ps1")
|
||||
$ignore = @(".gitignore", "setup.ps1", "setup.cmd")
|
||||
|
||||
Get-ChildItem . |
|
||||
? { !$ignore.Contains($_.Name) } |
|
||||
% {
|
||||
% {
|
||||
$l = split-path -leaf $_.FullName
|
||||
$p = split-path -parent (split-path -parent $_.FullName)
|
||||
$t = join-path $p $l
|
||||
|
|
@ -18,6 +18,6 @@ Get-ChildItem . |
|
|||
if (test-path $t) {
|
||||
remove-item -recurse -force $t
|
||||
}
|
||||
|
||||
|
||||
new-link $t $($_.FullName)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue