Compare commits

..

No commits in common. "951ee8189ed0b15d19fa22e3a03e2fcadafc41f8" and "e531d5ec4856657db704245ad737fe0dfaf508a9" have entirely different histories.

5 changed files with 31 additions and 47 deletions

View file

@ -18,13 +18,13 @@ header() {
updates_output() { updates_output() {
notify=$1 notify=$1
if [[ -n $updates_arch ]]; then if ! [[ -z $updates_arch ]]; then
header header
echo "ARCH: $(echo "$updates_arch" | wc -l)" echo "ARCH: $(echo "$updates_arch" | wc -l)"
header header
[[ -z $notify ]] && echo "$updates_arch" [[ -z $notify ]] && echo "$updates_arch"
fi fi
if [[ -n $updates_aur ]]; then if ! [[ -z $updates_aur ]]; then
header header
echo "AUR: $(echo "$updates_aur" | wc -l)" echo "AUR: $(echo "$updates_aur" | wc -l)"
header header
@ -35,7 +35,7 @@ updates_output() {
update_system() { update_system() {
echo echo
read -r -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1 read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
pikaur -Syu --noedit --nodiff pikaur -Syu --noedit --nodiff
} }
@ -48,7 +48,7 @@ for opt in "$@"; do
notify=1 notify=1
shift shift
;; ;;
-*) -* | --*)
echo "Invalid option: $opt" echo "Invalid option: $opt"
usage usage
exit 1 exit 1
@ -68,10 +68,10 @@ if [[ -z $updates_info ]]; then
exit 0 exit 0
fi fi
if [[ -n $notify ]]; then if ! [[ -z $notify ]]; then
notify-send -w "System Updates Available!" "$updates_info" notify-send -w "System Updates Available!" "$updates_info"
else else
echo "nystem Updates Available!" echo "System Updates Available!"
echo "$updates_info" echo "$updates_info"
update_system update_system
fi fi

View file

@ -15,7 +15,7 @@ deps=(
# TODO: make sure tree-sitter is rust version? # TODO: make sure tree-sitter is rust version?
is-cmd() { is-cmd() {
if [ -x "$(command -v "$1")" ]; then if [ -x "$(command -v $1)" ]; then
return 0 return 0
else else
return 1 return 1
@ -43,10 +43,10 @@ install-astronvim(){
echo "Checking for optional dependencies" echo "Checking for optional dependencies"
check-dep(){ check-dep(){
if is-cmd "$1"; then if is-cmd $1; then
printf '%15s \033[32m%s\033[0m\n' "$1" 'yes' printf '%15s \033[32m%s\033[0m\n' $1 'yes'
else else
printf '%15s \033[31m%s\033[0m\n' "$1" 'no' printf '%15s \033[31m%s\033[0m\n' $1 'no'
fi fi
} }

View file

@ -1,34 +1,25 @@
return { return {
--Big-money [[ _______________________________________ ]],
[[ /$$ ]], [[ |,---"-----------------------------"---,| ]],
[[ |__/ ]], [[ ||___ 16 bit.................... || ]],
[[ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ]], [[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$]], [[ ||=====):H c> nvim H || ]],
[[| $$ \ $$| $$$$$$$$| $$ \ $$ \ $$/$$/ | $$| $$ \ $$ \ $$]], [[ ||====/ :H H || ]],
[[| $$ | $$| $$_____/| $$ | $$ \ $$$/ | $$| $$ | $$ | $$]], [[ || :H H || ]],
[[| $$ | $$| $$$$$$$| $$$$$$/ \ $/ | $$| $$ | $$ | $$]], [[ ||PORTFO:H H || ]],
[[|__/ |__/ \_______/ \______/ \_/ |__/|__/ |__/ |__/]], [[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
[[ ||_____,_________________________,_____|| ]],
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
[[|------"--------------------------------------"-------|]],
[[`-----------------------------------------------------']],
} }
-- [[ _______________________________________ ]],
-- [[ |,---"-----------------------------"---,| ]],
-- [[ ||___ 16 bit.................... || ]],
-- [[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
-- [[ ||=====):H c> nvim H || ]],
-- [[ ||====/ :H H || ]],
-- [[ || :H H || ]],
-- [[ ||PORTFO:H H || ]],
-- [[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
-- [[ ||_____,_________________________,_____|| ]],
-- [[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
-- [[ //"""""""|_____|=----------=|______|"""""""\ ]],
-- [[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
-- [[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
-- [[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
-- [[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
-- [[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
-- [[|------"--------------------------------------"-------|]],
-- [[`-----------------------------------------------------']],
-- simpler header -- simpler header
--[[ --[[

View file

@ -4,10 +4,8 @@ local config = {
-- This function is run last and is a good place to configuring -- This function is run last and is a good place to configuring
-- augroups/autocommands and custom filetypes also this just pure lua so -- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here -- anything that doesn't fit in the normal config locations above can go here
polish = function() --polish = function()
-- todo: convert to lua --end,
vim.cmd('cnoremap sudow w !sudo tee % >/dev/null')
end,
} }
return config return config

View file

@ -1,5 +0,0 @@
return function(config)
-- for compatability with nvim-transparent
config.background_color = "#000000"
return config
end