feat: debian setup, codepsaces install
This commit is contained in:
@@ -16,4 +16,6 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
brew --version
|
||||
|
||||
unset NONINTERACTIVE
|
||||
else
|
||||
echo "Skipping: Not macOS"
|
||||
fi
|
||||
|
||||
@@ -12,9 +12,7 @@ if command -v apt-get &> /dev/null; then
|
||||
gnupg2
|
||||
)
|
||||
|
||||
sudo apt-get update
|
||||
|
||||
apt_packages=($(comm -13 <(printf "%s\n" "${apt_packages[@]}" | sort) <(dpkg --get-selections | awk '{print $1}' | sort)))
|
||||
sudo apt-get update -qq
|
||||
if [ ${#apt_packages[@]} -gt 0 ]; then
|
||||
sudo apt-get install -qq "${apt_packages[@]}"
|
||||
fi
|
||||
@@ -23,3 +21,6 @@ if command -v apt-get &> /dev/null; then
|
||||
else
|
||||
echo "Skipping: apt-get not found"
|
||||
fi
|
||||
|
||||
apt --version
|
||||
echo "Last updated: $(ls -l /var/lib/apt/periodic/update-success-stamp | awk '{print $6" "$7" "$8}')"
|
||||
|
||||
@@ -40,3 +40,9 @@ export POWERLEVEL10K="$ZSH/custom/themes/powerlevel10k"
|
||||
if [ ! -d "$POWERLEVEL10K" ]; then
|
||||
git clone -q --depth=1 https://github.com/romkatv/powerlevel10k.git $POWERLEVEL10K
|
||||
fi
|
||||
|
||||
# change default shell to zsh
|
||||
if [[ "$SHELL" != *zsh ]]; then
|
||||
sudo chsh -s "$(command -v zsh)" "$(whoami)"
|
||||
sudo usermod -s "$(command -v zsh)" "$(whoami)"
|
||||
fi
|
||||
|
||||
@@ -25,7 +25,6 @@ if ! command -v "pyenv" &> /dev/null; then
|
||||
liblzma-dev
|
||||
zlib1g-dev
|
||||
)
|
||||
pyenv_packages=($(comm -13 <(printf "%s\n" "${pyenv_packages[@]}" | sort) <(dpkg --get-selections | awk '{print $1}' | sort)))
|
||||
if [ ${#pyenv_packages[@]} -gt 0 ]; then
|
||||
sudo apt-get install -qq "${pyenv_packages[@]}"
|
||||
fi
|
||||
@@ -50,6 +49,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
unset virtualenv_path
|
||||
fi
|
||||
|
||||
eval "$(pyenv init --path)"
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
pyenv --version
|
||||
|
||||
@@ -18,6 +18,4 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
echo "Adding user to docker group"
|
||||
sudo usermod -aG docker "$USER"
|
||||
fi
|
||||
|
||||
unset docker_group
|
||||
fi
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
if ! command -v "neofetch" &>/dev/null; then
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
sudo apt-get install -qq neofetch
|
||||
sudo apt-get install neofetch -qq
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
brew install neofetch
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user