aboutsummaryrefslogtreecommitdiff
path: root/functions/fish_greeting.fish
blob: 2c8193da51bca1413605c9acfdcd10d6ae6b0f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function fish_greeting

  if not set -q TMUX

    if set -q SSH_CONNECTION
      if command -sq fastfetch
        fastfetch -c paleofetch.jsonc
      end

      if command -sq bsdfetch
        bsdfetch
      end
    end

    if command -sq fortune
      if string match -q -e 'Linux' (uname)
        echo
        fortune linux
        echo
      else
        fortune
      end
    end

  end

end