Use a symlink to dotnet (works everywhere)

This commit is contained in:
Anthony Rose 2023-06-21 19:22:24 +01:00
parent 0d3c409cdb
commit e075a5c71d
2 changed files with 6 additions and 2 deletions

View file

@ -236,7 +236,6 @@ alias 7zencrypt="7z a -t7z -p -mhe"
alias alu="apt list --upgradable" alias alu="apt list --upgradable"
alias asdo="apt source --download-only" alias asdo="apt source --download-only"
alias aurmake="makepkg -irs" alias aurmake="makepkg -irs"
alias dotnet="$DOTNET_ROOT/dotnet"
alias f=fossil alias f=fossil
alias ip="ip -c" alias ip="ip -c"
alias isocal="cal --iso --reform=iso --monday --week" alias isocal="cal --iso --reform=iso --monday --week"

View file

@ -92,9 +92,14 @@
ansible.builtin.copy: ansible.builtin.copy:
src: azerty-afnor.txt src: azerty-afnor.txt
dest: "{{ ansible_env.XDG_DATA_HOME }}/azerty-afnor.txt" dest: "{{ ansible_env.XDG_DATA_HOME }}/azerty-afnor.txt"
# Get the latest version from <https://dotnet.microsoft.com/en-us/download/dotnet/scripts>
- name: Create $HOME/.local/bin/dotnet-install.sh - name: Create $HOME/.local/bin/dotnet-install.sh
ansible.builtin.copy: ansible.builtin.copy:
# Get the latest version from <https://dotnet.microsoft.com/en-us/download/dotnet/scripts>
src: dotnet-install.sh src: dotnet-install.sh
dest: "{{ ansible_env.HOME }}/.local/bin/dotnet-install.sh" dest: "{{ ansible_env.HOME }}/.local/bin/dotnet-install.sh"
mode: '0755' mode: '0755'
- name: Create $HOME/.local/bin/dotnet
ansible.builtin.file:
src: "{{ ansible_env.HOME }}/.dotnet/dotnet"
dest: "{{ ansible_env.HOME }}/.local/bin/dotnet"
state: link