-
Notifications
You must be signed in to change notification settings - Fork 0
Set up role for zsh #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains hidden or 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,48 @@ | ||
| namespace: marinatedconcrete | ||
| name: config | ||
|
|
||
| # The version of the collection. Must be compatible with semantic versioning | ||
| version: 0.1.0 | ||
|
|
||
| readme: README.md | ||
|
|
||
| # A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url) | ||
| # @nicks:irc/im.site#channel' | ||
| authors: | ||
| - robarnold | ||
| - sdwilsh | ||
|
|
||
| # Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only | ||
| # accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' | ||
| license: | ||
| - BSD-3-Clause | ||
|
|
||
| # A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character | ||
| # requirements as 'namespace' and 'name' | ||
| tags: | ||
| - zsh | ||
|
|
||
| # Collections that this collection requires to be installed for it to be usable. The key of the dict is the | ||
| # collection label 'namespace.name'. The value is a version range | ||
| # L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version | ||
| # range specifiers can be set and are separated by ',' | ||
| dependencies: {} | ||
|
|
||
| # The URL of the originating SCM repository | ||
| repository: https://github.com/marinatedconcrete/config | ||
|
|
||
| # The URL to any online docs | ||
| documentation: lol | ||
|
robarnold marked this conversation as resolved.
|
||
|
|
||
| # The URL to the homepage of the collection/project | ||
| homepage: https://github.com/marinatedconcrete/config | ||
|
|
||
| # The URL to the collection issue tracker | ||
| issues: https://github.com/marinatedconcrete/config/issues | ||
|
|
||
| # A list of file glob-like patterns used to filter any files or directories that should not be included in the build | ||
| # artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This | ||
| # uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry', | ||
| # and '.git' are always filtered | ||
| build_ignore: [] | ||
|
|
||
This file contains hidden or 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,21 @@ | ||
| - name: Install zsh | ||
|
robarnold marked this conversation as resolved.
|
||
| ansible.builtin.apt: | ||
| name: zsh | ||
| state: present | ||
| when: ansible_facts['os_family'] == 'Debian' | ||
| - name: Set up zsh config | ||
| ansible.builtin.template: | ||
| src: zshrc | ||
| dest: "~{{ item }}/.zshrc" | ||
| mode: u+rw-x,o-rwx,g-rwx | ||
| owner: "{{ item }}" | ||
| group: "{{ item }}" | ||
| loop: "{{ zsh__users }}" | ||
| - name: Set up zsh environment | ||
| ansible.builtin.template: | ||
| src: zshenv | ||
| dest: "~{{ item }}/.zshenv" | ||
| mode: u+rw-x,o-rwx,g-rwx | ||
| owner: "{{ item }}" | ||
| group: "{{ item }}" | ||
| loop: "{{ zsh__users }}" | ||
This file contains hidden or 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,4 @@ | ||
| if [ -f .cargo/env ]; then | ||
| . "$HOME/.cargo/env" | ||
| fi | ||
| export PATH="$HOME/.local/bin:$PATH" |
This file contains hidden or 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,23 @@ | ||
| # Lines configured by zsh-newuser-install | ||
| HISTFILE=~/.histfile | ||
| HISTSIZE=1000 | ||
| SAVEHIST=1000 | ||
| unsetopt autocd | ||
| bindkey -v | ||
| # End of lines configured by zsh-newuser-install | ||
| # The following lines were added by compinstall | ||
| zstyle :compinstall filename '/home/{{ item }}/.zshrc' | ||
|
|
||
| autoload -Uz compinit | ||
| compinit | ||
| # End of lines added by compinstall | ||
|
|
||
| LS_COLORS=ExGxBxDxCxEgEdxbxgxcxd | ||
| alias ls='ls --color=auto' | ||
| alias grep='grep --color=auto' | ||
|
|
||
| {% raw -%} | ||
| PROMPT="%F{cyan}%n@%m%f:%F{green}%5(~Q…%4dQ%~)%f %(!.#.$) " | ||
| RPROMPT="%F{cyan}%* %D{%m/%d}%f" | ||
| export EDITOR=vim | ||
| {% endraw %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where I think maybe we want a repo for our own collection. That, or we rename this to be something to indicate it's a monorepo