2018-11-18 23:46:40 +01:00
|
|
|
|
dotfiles
|
|
|
|
|
==========
|
2019-05-14 11:17:00 +02:00
|
|
|
|
[![Build Status](https://travis-ci.org/chaos-bodensee/role_dotfiles.svg?branch=master)](https://travis-ci.org/chaos-bodensee/role_dotfiles)
|
2019-02-01 15:27:32 +01:00
|
|
|
|
|
2019-06-11 13:32:22 +02:00
|
|
|
|
<a href="https://galaxy.ansible.com/do1jlr/dotfiles"><img width="80px" src="https://galaxy.ansible.com/assets/galaxy-logo-02.svg"/></a>
|
|
|
|
|
|
2020-11-13 11:30:51 +01:00
|
|
|
|
### Get it directly from Ansible Galaxy
|
2019-06-11 13:32:22 +02:00
|
|
|
|
```bash
|
|
|
|
|
$ ansible-galaxy install do1jlr.dotfiles
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Function of this role
|
|
|
|
|
-----------------------
|
2018-11-18 23:46:40 +01:00
|
|
|
|
Ansible role to deploy some dotfiles which may be useful
|
2018-11-18 00:05:07 +01:00
|
|
|
|
|
|
|
|
|
Affected files:
|
|
|
|
|
```ini
|
|
|
|
|
/etc/bash.bashrc
|
2019-01-10 13:32:49 +01:00
|
|
|
|
~/.bashrc
|
|
|
|
|
~/.vimrc
|
2018-11-18 00:05:07 +01:00
|
|
|
|
```
|
2020-11-13 11:30:51 +01:00
|
|
|
|
our variables:
|
2018-11-18 23:46:40 +01:00
|
|
|
|
---------------
|
2018-11-18 00:05:07 +01:00
|
|
|
|
```ini
|
2020-11-13 11:30:51 +01:00
|
|
|
|
# enable basic version check for this role
|
|
|
|
|
# set it to true to use it (recomended)
|
|
|
|
|
submodules_versioncheck: false
|
2019-03-03 23:09:48 +01:00
|
|
|
|
|
2020-11-13 11:30:51 +01:00
|
|
|
|
# for some ansible features we need the python selinux package at fedora
|
|
|
|
|
# disable it, if you don't want it
|
|
|
|
|
dotfiles__install_python_selinux: true
|
2018-11-18 00:05:07 +01:00
|
|
|
|
|
2020-11-13 11:30:51 +01:00
|
|
|
|
# modify bashrc
|
|
|
|
|
base__modify_bashrc: true
|
|
|
|
|
|
|
|
|
|
# list of aliases used in bashrc
|
|
|
|
|
base__aliases:
|
|
|
|
|
- { alias: "ls", command: "ls ", color: True }
|
|
|
|
|
- { alias: "grep", command: "grep", color: True }
|
|
|
|
|
- { alias: "ll", command: "ls -alF", color: False }
|
|
|
|
|
- { alias: "la", command: "ls -A", color: False }
|
|
|
|
|
- { alias: "l", command: "ls -CF", color: False }
|
|
|
|
|
- { alias: "lz", command: "ls -Z", color: False }
|
|
|
|
|
- { alias: "EDITOR", command: "/usr/bin/vim", color: False }
|
|
|
|
|
- { alias: "VISUAL", command: "/usr/bin/gedit", color: False }
|
|
|
|
|
- { alias: "gitsubpull", command: 'git submodule foreach "(git checkout $(git symbolic-ref --short refs/remotes/origin/HEAD | sed "s@^origin/@@"); git pull)"', color: False }
|
|
|
|
|
- { alias: "pwgen", command: "/usr/bin/pwgen --num-passwords=3000 --numerals --capitalize --secure --no-vowels --symbols 42 | grep -v '0' | grep -v 'o' | grep -v 'O' | grep -v '\"' | grep -v 'I' | grep -v 'l' | grep -v '1' | grep -v '´' | grep -v '@' | tail -1 ", color: false }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# enable bash completion
|
|
|
|
|
base__bash_completion_enabled: true
|
|
|
|
|
|
|
|
|
|
# fancy promt
|
|
|
|
|
base__user_promt: '\[\033[01;33m\] $(printf "\xE2\x9D\xA4") \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
|
|
|
|
|
base__root_prompt: '\[\033[01;31m\] $(printf "\xE2\x9D\xA4") \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
|
|
|
|
|
|
|
|
|
|
# log terminal to syslog
|
|
|
|
|
base__log_to_syslog: true
|
|
|
|
|
|
|
|
|
|
# modify bash history
|
|
|
|
|
history_control: 'ignoreboth'
|
|
|
|
|
history_size: '-1'
|
|
|
|
|
history_file_size: '-1'
|
|
|
|
|
|
|
|
|
|
# optional additional entries to bashrc
|
|
|
|
|
base__additional_bashrc_lines: []
|
|
|
|
|
# - eval `foo`
|
|
|
|
|
# - tmux new-session
|
|
|
|
|
|
|
|
|
|
# optionally allow custom bashrc for root
|
|
|
|
|
base__allow_own_root_bashrc: false
|
|
|
|
|
|
|
|
|
|
# otional custom commands
|
|
|
|
|
base__additional_bashrc_lines: []
|
|
|
|
|
# - eval `foo`
|
|
|
|
|
# - tmux new-session
|
|
|
|
|
|
|
|
|
|
# optionally allow custom bashrc for root
|
|
|
|
|
base__allow_own_root_bashrc: false
|
|
|
|
|
|
|
|
|
|
# otional custom commands
|
|
|
|
|
base__custom_config: []
|
|
|
|
|
# - { user: "l3d", cmd: "eval $(keychain --eval --quiet id_ed25519)"
|
|
|
|
|
|
|
|
|
|
# show hidden files in ranger
|
|
|
|
|
base__ranger_hidden_files: true
|
|
|
|
|
|
|
|
|
|
accounts:
|
|
|
|
|
- "{{ ansible_user_id }}"
|
2018-11-18 23:46:40 +01:00
|
|
|
|
```
|
|
|
|
|
|
2019-02-01 15:27:32 +01:00
|
|
|
|
Please have a look into ``defaults/main.yml`` for more configuration options!
|