macOS fish update

This commit is contained in:
Ivan Golikov 2025-03-04 19:27:42 +01:00
parent 00eeea7494
commit 5e7ff61757
2 changed files with 12 additions and 2 deletions

View file

@ -5,13 +5,17 @@ if status is-interactive
fish_add_path -a /opt/nvim-linux64/bin fish_add_path -a /opt/nvim-linux64/bin
end end
if test -d /opt/homebrew/
/opt/homebrew/bin/brew shellenv | source
end
switch (whoami) switch (whoami)
# Corporate machine # Corporate machine
case Ivan_Golikov case Ivan_Golikov
fish_add_path -p /usr/local/opt/libpq/bin fish_add_path -p /usr/local/opt/libpq/bin
fish_add_path -a /Users/Ivan_Golikov/Projects/Scripts/bin fish_add_path -a /Users/Ivan_Golikov/Projects/Scripts/bin
fish_add_path -a /Users/Ivan_Golikov/Library/Python/3.11/bin fish_add_path -a /Users/Ivan_Golikov/Library/Python/3.11/bin
case kmqg099: case kbgw752:
fish_add_path -a /usr/local/opt/node@18/bin fish_add_path -a /usr/local/opt/node@18/bin
end end

View file

@ -43,7 +43,7 @@
- name: posting - name: posting
- name: ipython - name: ipython
macos_fish_path: /usr/local/bin/fish macos_fish_path: /opt/homebrew/bin/fish
arch_fish_path: /usr/bin/fish arch_fish_path: /usr/bin/fish
tasks: tasks:
@ -129,6 +129,12 @@
tags: tags:
- dev_tools - dev_tools
- name: Add fish to /etc/shells
become: true
ansible.builtin.lineinfile:
path: /etc/shells
line: "{{ macos_fish_path }}"
- name: Set fish as default shell - name: Set fish as default shell
become: true become: true
ansible.builtin.user: ansible.builtin.user: