Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[url "git@github.com:"]
insteadOf = https://github.com/
[diff]
tool = difftastic
external = difft
Expand Down
1 change: 1 addition & 0 deletions ansible/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
roles:
- init_snap
- xdg_base_directory
- dot_rc
- system_tools
- dev_tools
- fonts
Expand Down
20 changes: 20 additions & 0 deletions ansible/roles/dot_rc/tasks/_backup_and_symlink.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- name: backup_and_symlink
become: false
block:
- name: check item exists
stat:
path: "{{ lookup('env', 'HOME') }}/{{ item }}"
register: item_exists
changed_when: false

- name: backup if item exists
ansible.builtin.shell: >-
mv "{{ lookup('env', 'HOME') }}/{{ item }}" "{{ lookup('env', 'HOME') }}/{{ item }}.bak"
when: item_exists.stat.exists and not item_exists.stat.islnk

- name: create symlink
file:
src: "{{ (playbook_dir + '/../' + item) | realpath }}"
dest: "{{ lookup('env', 'HOME') }}/{{ item }}"
state: link
when: not item_exists.stat.exists
10 changes: 10 additions & 0 deletions ansible/roles/dot_rc/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: backup and symlink rc files and others
include_tasks: _backup_and_symlink.yaml
with_items:
- .bashrc
- .bash_aliases
- .profile
- .dircolors
- .config/rcs
- .gitignore
- .gitconfig
81 changes: 0 additions & 81 deletions install.sh

This file was deleted.

39 changes: 0 additions & 39 deletions uninstall.sh

This file was deleted.

Loading