blob: 6fa029218e0e6a537b2432325afe123adf334205 (
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
28
29
30
31
|
#!/usr/bin/env bash
# Author : Ibrahim Mkusa
# Description: installs and sets up core environment for my dev work on servers
set -e # subshells inherit environment from parent
# detect which family of distro i'm on
if [[ -f /etc/os-release ]]; then
. /etc/os-release
case "$ID_LIKE" in
debian)
echo "Running on debian-family.."
package_manager=apt
vim="vim-nox"
;;
fedora)
echo "Running on debian-family.."
package_manager=fedora
vim="vim-enhanced"
esac
else
echo "You are running an unrecognized family of os. Quitting..."
exit 1
fi
echo "Installing packages"
sudo $package_manager install -y $vim git stow curl ranger tmux
# use gnu stow to symlink config files to home directory
stow bash git ranger shellenv tmux vim
|