From 5e7ff617570936fac1340ac421a59617ed20abf2 Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Tue, 4 Mar 2025 19:27:42 +0100 Subject: [PATCH] macOS fish update --- .config/fish/config.fish | 6 +++++- .local/share/dotfiles/install_dotfiles.yml | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index acc0e12..db36de8 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -5,13 +5,17 @@ if status is-interactive fish_add_path -a /opt/nvim-linux64/bin end + if test -d /opt/homebrew/ + /opt/homebrew/bin/brew shellenv | source + end + switch (whoami) # Corporate machine case Ivan_Golikov 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/Library/Python/3.11/bin - case kmqg099: + case kbgw752: fish_add_path -a /usr/local/opt/node@18/bin end diff --git a/.local/share/dotfiles/install_dotfiles.yml b/.local/share/dotfiles/install_dotfiles.yml index dfc0565..fa8e084 100644 --- a/.local/share/dotfiles/install_dotfiles.yml +++ b/.local/share/dotfiles/install_dotfiles.yml @@ -43,7 +43,7 @@ - name: posting - name: ipython - macos_fish_path: /usr/local/bin/fish + macos_fish_path: /opt/homebrew/bin/fish arch_fish_path: /usr/bin/fish tasks: @@ -128,6 +128,12 @@ loop: "{{ uv_packages }}" tags: - 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 become: true