Compare commits
No commits in common. "d6578c5d4a5ef5971603023af0b24ffee08cbc25" and "be771bcb7b223bf074319adb43f41a87240625ee" have entirely different histories.
d6578c5d4a
...
be771bcb7b
@ -11,8 +11,6 @@ file
|
|||||||
findutils
|
findutils
|
||||||
flex
|
flex
|
||||||
fzf
|
fzf
|
||||||
gcc
|
|
||||||
gcc-c++
|
|
||||||
gettext
|
gettext
|
||||||
go
|
go
|
||||||
htop
|
htop
|
||||||
@ -28,7 +26,6 @@ npm
|
|||||||
openssh
|
openssh
|
||||||
patch
|
patch
|
||||||
pkg-config
|
pkg-config
|
||||||
python3-devel
|
|
||||||
python3-pip
|
python3-pip
|
||||||
python3-pylint
|
python3-pylint
|
||||||
python3-virtualenv
|
python3-virtualenv
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
autoconf
|
|
||||||
automake
|
|
||||||
bat
|
|
||||||
binutils
|
|
||||||
bison
|
|
||||||
cmake
|
|
||||||
cowsay
|
|
||||||
feh
|
|
||||||
figlet
|
|
||||||
coreutils
|
|
||||||
flex
|
|
||||||
fzf
|
|
||||||
gcc
|
|
||||||
g++
|
|
||||||
gettext
|
|
||||||
go
|
|
||||||
htop
|
|
||||||
openjdk
|
|
||||||
jq
|
|
||||||
libtool
|
|
||||||
lolcat
|
|
||||||
mono
|
|
||||||
ncurses
|
|
||||||
neofetch
|
|
||||||
node
|
|
||||||
npm
|
|
||||||
openssh
|
|
||||||
patch
|
|
||||||
pkg-config
|
|
||||||
python
|
|
||||||
pip3
|
|
||||||
pylint
|
|
||||||
virtualenv
|
|
||||||
ripgrep
|
|
||||||
rust
|
|
||||||
sed
|
|
||||||
sudo
|
|
||||||
tmux
|
|
||||||
vim
|
|
||||||
yamllint
|
|
||||||
yq
|
|
||||||
zip
|
|
||||||
zsh
|
|
21
setup/os.zsh
21
setup/os.zsh
@ -18,9 +18,6 @@ OS__GET_OS() {
|
|||||||
[ ! ${OS_NAME} ] \
|
[ ! ${OS_NAME} ] \
|
||||||
&& OS_NAME=$(cat /etc/os-release 2>/dev/null | sed -n 's/^ID=//p')
|
&& OS_NAME=$(cat /etc/os-release 2>/dev/null | sed -n 's/^ID=//p')
|
||||||
|
|
||||||
uname -s | grep -q Darwin \
|
|
||||||
&& OS_NAME=macos
|
|
||||||
|
|
||||||
[ ! ${OS_NAME} ] \
|
[ ! ${OS_NAME} ] \
|
||||||
&& WARNING 'failed to detect operating system' \
|
&& WARNING 'failed to detect operating system' \
|
||||||
&& OS_NAME=$(echo -e "arch\ndebian\nother" | FZF 'select an operating system') \
|
&& OS_NAME=$(echo -e "arch\ndebian\nother" | FZF 'select an operating system') \
|
||||||
@ -46,12 +43,6 @@ OS__INSTALL_SOURCE_DEPENDENCIES() {
|
|||||||
( fedora ) ;;
|
( fedora ) ;;
|
||||||
|
|
||||||
( debian ) ;;
|
( debian ) ;;
|
||||||
|
|
||||||
( macos )
|
|
||||||
command -v brew &>/dev/null \
|
|
||||||
|| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
||||||
;;
|
|
||||||
|
|
||||||
( * ) ;;
|
( * ) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -68,9 +59,8 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
|
|||||||
|
|
||||||
STATUS 'checking os dependencies'
|
STATUS 'checking os dependencies'
|
||||||
case ${OS_NAME} in
|
case ${OS_NAME} in
|
||||||
( arch | fedora | debian | macos )
|
( arch | debian | fedora )
|
||||||
;;
|
;;
|
||||||
|
|
||||||
( * )
|
( * )
|
||||||
OS_NAME='generic'
|
OS_NAME='generic'
|
||||||
WARNING "no automated installer available for '${OS_NAME}'"
|
WARNING "no automated installer available for '${OS_NAME}'"
|
||||||
@ -138,15 +128,6 @@ INSTALL_MANAGED__fedora() {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
UPDATE_REPOSITORIES__macos() { brew update && brew upgrade; }
|
|
||||||
INSTALL_MANAGED__macos() {
|
|
||||||
STATUS "checking / installing '$1'"
|
|
||||||
yes | brew install $1 \
|
|
||||||
&& SUCCESS "'$1' installed" \
|
|
||||||
|| ERROR "failed to install ${TARGET}" \
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
UPDATE_REPOSITORIES__generic() { return 0; }
|
UPDATE_REPOSITORIES__generic() { return 0; }
|
||||||
INSTALL_MANAGED__generic() {
|
INSTALL_MANAGED__generic() {
|
||||||
command -v $1 >/dev/null 2>&1 \
|
command -v $1 >/dev/null 2>&1 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user