Skip to content

Commit

Permalink
os files in the root
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlivio committed Apr 12, 2023
1 parent aff06a6 commit 81dbac8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
#!/bin/bash

BH_DIR="$(dirname "${BASH_SOURCE[0]}")"
BH_LIB="$(dirname "${BASH_SOURCE[0]}")/lib"
if [ -z "${BH_BIN}" ]; then BH_BIN="$HOME/bin"; fi

#########################
# load os_*.bash files
#########################

source "$BH_LIB/os_any.bash"
source "$BH_DIR/os_any.bash"
case $OSTYPE in
msys*)
source "$BH_LIB/os_win.bash"
source "$BH_DIR/os_win.bash"
alias ghostscript='gswin64.exe'
;;
linux*)
source "$BH_LIB/os_ubu.bash"
if [[ -n $WSL_DISTRO_NAME ]]; then source "$BH_LIB/os_win.bash"; fi
source "$BH_DIR/os_ubu.bash"
if [[ -n $WSL_DISTRO_NAME ]]; then source "$BH_DIR/os_win.bash"; fi
;;
darwin*)
source "$BH_LIB/os_mac.bash"
source "$BH_DIR/os_mac.bash"
;;
esac

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 81dbac8

Please sign in to comment.