Skip to content

Commit

Permalink
mv code per distro to sys dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wick3dr0se committed Dec 14, 2021
1 parent 954ec03 commit d960a5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions sysfetch
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/bash

# set src directory
dir /usr/share/sysfetch ; src="/usr/share/sysfetch" || src=$(dirname "$(readlink -f "$0")")
[[ -e /usr/share/sysfetch ]] ; src="/usr/share/sysfetch" || src=$(dirname "$(readlink -f "$0")")

# pull in functions and code based on system
source "$src/assets/functions.sh"
sys=$(uname)
if is $sys "Darwin" ; then
source "$src/darwin.sh"
source "$src/sys/darwin.sh"
elif is $sys "Linux" ; then
source "$src/linux.sh"
source "$src/sys/linux.sh"
elif is $sys "BSD" ; then
source "$src/bsd.sh"
source "$src/sys/bsd.sh"
elif is $sys "WSL" ; then
source "$src/wsl.sh"
source "$src/sys/wsl.sh"
fi

# colors
Expand Down

0 comments on commit d960a5d

Please sign in to comment.