🏗 update scripts to work on ubuntu
This commit is contained in:
@ -13,4 +13,4 @@ set -g status-fg white
|
||||
|
||||
bind-key X kill-session
|
||||
|
||||
set-option -g default-command "reattach-to-user-namespace -l zsh"
|
||||
#set-option -g default-command "reattach-to-user-namespace -l zsh"
|
||||
|
@ -15,6 +15,11 @@ export CVS_RSH=ssh
|
||||
[ -f $HOME/.environment ] && . $HOME/.environment
|
||||
|
||||
# Load asdf
|
||||
. $(brew --prefix asdf)/asdf.sh
|
||||
if [ type brew &> /dev/null ]; then
|
||||
. $(brew --prefix asdf)/asdf.sh
|
||||
else
|
||||
. ~/.asdf/asdf.sh
|
||||
fi
|
||||
|
||||
[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ] && . $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||
|
||||
[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ] && . $HOME/.nix-profile/etc/profile.d/nix.sh
|
@ -39,6 +39,7 @@ case "$OSTYPE" in
|
||||
;;
|
||||
linux*)
|
||||
plugins=($plugins debian)
|
||||
export PATH=/snap/bin:$PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -52,9 +53,11 @@ if [ -d ~/Library/Android/sdk ]; then
|
||||
fi
|
||||
|
||||
# zsh autosuggestions
|
||||
zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
if [ -f $zsh_autosuggestions ]; then
|
||||
source $zsh_autosuggestions
|
||||
if [ type brew &> /dev/null ]; then
|
||||
zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
if [ -f $zsh_autosuggestions ]; then
|
||||
source $zsh_autosuggestions
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $TERM = "screen" ]; then
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
function install_latest() {
|
||||
version=$(asdf list-all $1 | grep -v '[a-z]' | tail -1)
|
||||
@ -10,15 +10,26 @@ echo "* Updating homesick..."
|
||||
homesick pull
|
||||
homesick symlink
|
||||
|
||||
echo "* Restoring mackup..."
|
||||
mackup restore
|
||||
case "$OSTYPE" in
|
||||
darwin*)
|
||||
echo "* Restoring mackup..."
|
||||
mackup restore
|
||||
|
||||
echo "* Homebrew updates..."
|
||||
brew bundle --global --no-lock
|
||||
brew upgrade
|
||||
|
||||
echo "* Upgrading mac app store apps..."
|
||||
mas upgrade
|
||||
;;
|
||||
linux*)
|
||||
sudo apt update && sudo apt upgrade
|
||||
sudo snap refresh
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "* Homebrew updates..."
|
||||
brew bundle --global --no-lock
|
||||
brew upgrade
|
||||
|
||||
echo "* Upgrading mac app store apps..."
|
||||
mas upgrade
|
||||
|
||||
echo "* asdf update..."
|
||||
export R_CONFIGURE_OPTIONS="--with-x=no"
|
||||
|
Reference in New Issue
Block a user