-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Iovesophy/feature/windows
ADD: separate macos and windows dotfiles setting file
- Loading branch information
Showing
25 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ jobs: | |
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Run | ||
run: make | ||
run: cd macos && make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# dotfiles | ||
|
||
## macos | ||
|
||
```bash | ||
make | ||
``` | ||
|
||
## windows | ||
|
||
When setup, you need open git bash via auth of admin!!! | ||
|
||
```bat | ||
./init.bat | ||
``` | ||
|
||
```bash | ||
make NAME=`<git, user.name>` EMAIL=`<git, user.email>` | ||
``` | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,4 @@ | |
roles: | ||
- homebrew | ||
- vim | ||
- lima | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NAME:= | ||
EMAIL:= | ||
|
||
.PHONY: setup | ||
setup: | ||
./setup.sh ${NAME} ${EMAIL} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export MSYS=winsymlinks:nativestrict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[alias] | ||
lg = log --graph --date=short --format='%C(yellow)%h%C(reset)%C(magenta) [%ad]%C(reset)%C(auto)%d%C(reset) %s%C(cyan) @%an%C(reset)' | ||
st = status | ||
[core] | ||
quotepath = false | ||
[init] | ||
defaultBranch = main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
winget install Git.Git koalaman.shellcheck ezwinports.make | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash -eux | ||
|
||
# region enable symlink | ||
export MSYS=winsymlinks:nativestrict | ||
rm -rf ~/.bashrc | ||
ln -s "$(pwd)/bashrc" ~/.bashrc | ||
# endregion | ||
|
||
# region git setting | ||
cp -f gitconfig_addon ~/.gitconfig | ||
git config --global core.symlinks true | ||
git config --global user.name $1 | ||
git config --global user.email $2 | ||
cat ~/.gitconfig | ||
# endregion | ||
|