summarylogtreecommitdiffstats
path: root/install.sh
blob: 32cf61c48e86fa915e9480dfa84d06022e51754e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

for rcfile in ~/.bashrc ~/.zshrc; do
  if [ -f "$rcfile" ]; then
    if ! grep -q 'ayaanfetch' "$rcfile"; then
      echo '# >>> AYAAN UNSTABLE ZONE >>>' >> "$rcfile"
      alias ayaanfetch="wine /usr/bin/unstable/ayaanfetch/AyaanFetch.exe 2>/dev/null"
      echo 'export EPATH=/usr/bin/unstable/ayaanfetch' >> "$rcfile"
      echo '# <<< AYAAN UNSTABLE ZONE <<<' >> "$rcfile"
      # Auto-source the rcfile for INSTANT ALIAS!
      source "$rcfile"
    fi
  fi
done