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() {
notify=$1
if [[ -n $updates_arch ]]; then
if ! [[ -z $updates_arch ]]; then
header
echo "ARCH: $(echo "$updates_arch" | wc -l)"
header
[[ -z $notify ]] && echo "$updates_arch"
fi
if [[ -n $updates_aur ]]; then
if ! [[ -z $updates_aur ]]; then
header
echo "AUR: $(echo "$updates_aur" | wc -l)"
header
@ -35,7 +35,7 @@ updates_output() {
update_system() {
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
}
@ -48,7 +48,7 @@ for opt in "$@"; do
notify=1
shift
;;
-*)
-* | --*)
echo "Invalid option: $opt"
usage
exit 1
@ -68,10 +68,10 @@ if [[ -z $updates_info ]]; then
exit 0
fi
if [[ -n $notify ]]; then
if ! [[ -z $notify ]]; then
notify-send -w "System Updates Available!" "$updates_info"
else
echo "nystem Updates Available!"
echo "System Updates Available!"
echo "$updates_info"
update_system
fi

View file

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

View file

@ -1,34 +1,25 @@
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
--[[

View file

@ -4,10 +4,8 @@ local config = {
-- This function is run last and is a good place to configuring
-- 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
polish = function()
-- todo: convert to lua
vim.cmd('cnoremap sudow w !sudo tee % >/dev/null')
end,
--polish = function()
--end,
}
return config

View file

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