Clean up bin tools

main
Ensar Sarajčić 2022-05-09 13:00:44 +02:00
parent 2e52f575be
commit fd96c6afc2
8 changed files with 53 additions and 22 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash
# Quick install flag
set -e
quick=
while getopts q name

View File

@ -1,8 +0,0 @@
#!/bin/sh
brew update
brew upgrade
brew upgrade --cask
if [ $? -eq 0 ]; then
echo $( date +%s ) > $MY_CONFIG_CACHE_DIR/brew-upgrade-date
fi

View File

@ -1,9 +0,0 @@
#!/bin/bash
if [ ! -f $MY_CONFIG_CACHE_DIR/brew-upgrade-date ]; then
echo $( date +%s ) > $MY_CONFIG_CACHE_DIR/brew-upgrade-date
fi
LAST_BREW_UPGRADE=$( cat $MY_CONFIG_CACHE_DIR/brew-upgrade-date )
print-system-upgrade-date $LAST_BREW_UPGRADE mac-update

View File

@ -1,7 +1,13 @@
#!/bin/bash
if [ $MACHINE_TYPE == "mac" ]; then
print-last-brew-update
if [ ! -f $MY_CONFIG_CACHE_DIR/brew-upgrade-date ]; then
echo $( date +%s ) > $MY_CONFIG_CACHE_DIR/brew-upgrade-date
fi
LAST_BREW_UPGRADE=$( cat $MY_CONFIG_CACHE_DIR/brew-upgrade-date )
print-system-upgrade-date $LAST_BREW_UPGRADE update-all-packages
else
if type pacman &> /dev/null
then

View File

@ -1,5 +1,9 @@
#!/bin/bash
set -e
UNAME=$(sh -c 'uname 2>/dev/null || echo Unknown')
if type pacman > /dev/null 2>&1
then
# Clear out orphans
@ -55,10 +59,39 @@ then
fi
# Update rubygems
gem update --system
gem update
if type gem > /dev/null 2>&1
then
gem update --system
gem update
fi
vim +PlugUpdate +qall
if type nvim > /dev/null 2>&1
then
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
fi
if type -f vim > /dev/null 2>&1
then
command vim +PlugUpdate +qall
fi
if type asdf > /dev/null 2>&1
then
asdf update
asdf plugin-update --all
fi
if type brew > /dev/null 2>&1
then
brew update
brew upgrade
if [ "$UNAME" = "Darwin" ]; then
brew upgrade --cask
fi
if [ $? -eq 0 ]; then
echo $( date +%s ) > $MY_CONFIG_CACHE_DIR/brew-upgrade-date
fi
fi
if type pacman > /dev/null 2>&1
then

View File

@ -0,0 +1,6 @@
function __fish-aurfetch-list-plugins
set -l search_string (commandline -t)
aursearch $search_string
end
complete -c aurfetch -x -a '(__fish-aurfetch-list-plugins)'

View File

@ -0,0 +1 @@
complete -c clone-installation -x -a '(__fish_complete_directories ~/.dotfiles/installed_packages/)'

View File

@ -2,7 +2,7 @@ source ~/.dotfiles/symlinks/profile.common
export MACHINE_TYPE='linux'
export AUR_INSTALL_HOME=~/.aur
export AUR_INSTALL_HOME=~/.local/share/aurfetch
export GRIM_DEFAULT_DIR=~/Pictures/Screenshots
export PATH="$PATH:$HOME/Android/sdk/platform-tools/"