mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
Update gitsuball alias
This commit is contained in:
parent
1246e5e23c
commit
5f8ddc5622
3 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
register: playbook_version
|
||||
when: submodules_versioncheck|bool
|
||||
ignore_errors: yes
|
||||
failed_when: false
|
||||
|
||||
- name: Print remote role version
|
||||
debug:
|
||||
|
@ -41,4 +42,5 @@
|
|||
copy:
|
||||
content: "{{ playbook_version_number }}"
|
||||
dest: "/etc/.ansible-version/{{ playbook_version_path }}"
|
||||
mode: 0644
|
||||
when: submodules_versioncheck|bool
|
||||
|
|
|
@ -129,7 +129,7 @@ alias VISUAL='{{ dotfiles_default_visual }}'
|
|||
alias got='git'
|
||||
{% endif %}
|
||||
{% if git_pull_alias | bool -%}
|
||||
alias gitsubpull='git submodule foreach "(git checkout master; git pull)"'
|
||||
alias gitsubpull='git submodule foreach "(git checkout $(git symbolic-ref --short refs/remotes/origin/HEAD | sed "s@^origin/@@"); git pull)"'
|
||||
{% endif %}
|
||||
|
||||
{% if bash['pwgen'] %}alias pwgen="/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 "{% endif %}
|
||||
|
|
|
@ -8,5 +8,5 @@ bash:
|
|||
shell: "/bin/bash"
|
||||
keyboard: '$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\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\] '
|
||||
|
||||
playbook_version_number: 2053 # should be over ninethousand
|
||||
playbook_version_number: 2055 # should be over ninethousand
|
||||
playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version'
|
||||
|
|
Loading…
Add table
Reference in a new issue