-
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.
* refactor: set default WORKSPACE_REPOSITORY_URL * refactor: make if statement short * refactor: create zprofile by ansible * refactor: make git task short
- Loading branch information
Showing
3 changed files
with
34 additions
and
61 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ ssh-keygen -t ed25519 | |
Run install script. | ||
|
||
```bash | ||
curl -fsSL https://raw.githubusercontent.com/rikuson/workspace/HEAD/install.sh | [email protected]:rikuson/workspace.git && zsh - | ||
curl -fsSL https://raw.githubusercontent.com/rikuson/workspace/HEAD/install.sh | zsh - | ||
``` | ||
|
||
Restart terminal and run `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
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,4 +1,8 @@ | ||
--- | ||
- name: Create .zprofile | ||
file: | ||
path: $HOME/.zprofile | ||
state: touch | ||
- name: Create .zshrc | ||
template: | ||
src: roles/cui/templates/.zshrc | ||
|
@@ -20,48 +24,21 @@ | |
- import_tasks: ohmyzsh.yml | ||
- import_tasks: neovim.yml | ||
|
||
# git | ||
- name: Set git editor | ||
git_config: | ||
name: core.editor | ||
scope: global | ||
value: nvim | ||
- name: Create .gitignore | ||
template: | ||
src: roles/cui/templates/.gitignore | ||
dest: $HOME | ||
- name: Set up global .gitignore | ||
git_config: | ||
name: core.excludesfile | ||
value: ~/.gitignore | ||
scope: global | ||
- name: Show Japanese properly | ||
git_config: | ||
name: core.quotepath | ||
value: false | ||
scope: global | ||
- name: Set pull rule | ||
git_config: | ||
name: pull.rebase | ||
value: true | ||
scope: global | ||
- name: Disable pager for branch | ||
git_config: | ||
name: pager.branch | ||
value: false | ||
scope: global | ||
- name: Disable pager for stash | ||
git_config: | ||
name: pager.stash | ||
value: false | ||
scope: global | ||
- name: Set git email | ||
git_config: | ||
name: user.email | ||
value: '[email protected]' | ||
scope: global | ||
- name: Set git user name | ||
git_config: | ||
name: user.name | ||
value: 'Riku Takeuchi' | ||
scope: global | ||
- name: Set git global configurations | ||
block: | ||
- git_config: | ||
name: "{{ item.name }}" | ||
value: "{{ item.value }}" | ||
scope: global | ||
with_items: | ||
- { name: "core.editor", value: "nvim" } | ||
- { name: "core.excludesfile", value: "~/.gitignore" } | ||
- { name: "core.quotepath", value: "false" } | ||
- { name: "pull.rebase", value: "true" } | ||
- { name: "pager.branch", value: "false" } | ||
- { name: "pager.stash", value: "false" } | ||
- { name: "user.email", value: "[email protected]" } | ||
- { name: "user.name", value: "Riku Takeuchi" } | ||
- template: | ||
src: roles/cui/templates/.gitignore | ||
dest: $HOME |