Compare commits
4 commits
e531d5ec48
...
951ee8189e
Author | SHA1 | Date | |
---|---|---|---|
951ee8189e | |||
037070f30d | |||
08c9994d88 | |||
eb3a1f6cc2 |
5 changed files with 47 additions and 31 deletions
|
@ -18,13 +18,13 @@ header() {
|
|||
|
||||
updates_output() {
|
||||
notify=$1
|
||||
if ! [[ -z $updates_arch ]]; then
|
||||
if [[ -n $updates_arch ]]; then
|
||||
header
|
||||
echo "ARCH: $(echo "$updates_arch" | wc -l)"
|
||||
header
|
||||
[[ -z $notify ]] && echo "$updates_arch"
|
||||
fi
|
||||
if ! [[ -z $updates_aur ]]; then
|
||||
if [[ -n $updates_aur ]]; then
|
||||
header
|
||||
echo "AUR: $(echo "$updates_aur" | wc -l)"
|
||||
header
|
||||
|
@ -35,7 +35,7 @@ updates_output() {
|
|||
|
||||
update_system() {
|
||||
echo
|
||||
read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
|
||||
read -r -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 ! [[ -z $notify ]]; then
|
||||
if [[ -n $notify ]]; then
|
||||
notify-send -w "System Updates Available!" "$updates_info"
|
||||
else
|
||||
echo "System Updates Available!"
|
||||
echo "nystem Updates Available!"
|
||||
echo "$updates_info"
|
||||
update_system
|
||||
fi
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -1,25 +1,34 @@
|
|||
return {
|
||||
[[ _______________________________________ ]],
|
||||
[[ |,---"-----------------------------"---,| ]],
|
||||
[[ ||___ 16 bit.................... || ]],
|
||||
[[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
[[ ||=====):H c> nvim H || ]],
|
||||
[[ ||====/ :H H || ]],
|
||||
[[ || :H H || ]],
|
||||
[[ ||PORTFO:H H || ]],
|
||||
[[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
[[ ||_____,_________________________,_____|| ]],
|
||||
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
|
||||
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
|
||||
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
|
||||
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
|
||||
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
|
||||
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
|
||||
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
|
||||
[[|------"--------------------------------------"-------|]],
|
||||
[[`-----------------------------------------------------']],
|
||||
--Big-money
|
||||
[[ /$$ ]],
|
||||
[[ |__/ ]],
|
||||
[[ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ]],
|
||||
[[| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$]],
|
||||
[[| $$ \ $$| $$$$$$$$| $$ \ $$ \ $$/$$/ | $$| $$ \ $$ \ $$]],
|
||||
[[| $$ | $$| $$_____/| $$ | $$ \ $$$/ | $$| $$ | $$ | $$]],
|
||||
[[| $$ | $$| $$$$$$$| $$$$$$/ \ $/ | $$| $$ | $$ | $$]],
|
||||
[[|__/ |__/ \_______/ \______/ \_/ |__/|__/ |__/ |__/]],
|
||||
}
|
||||
|
||||
-- [[ _______________________________________ ]],
|
||||
-- [[ |,---"-----------------------------"---,| ]],
|
||||
-- [[ ||___ 16 bit.................... || ]],
|
||||
-- [[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
-- [[ ||=====):H c> nvim H || ]],
|
||||
-- [[ ||====/ :H H || ]],
|
||||
-- [[ || :H H || ]],
|
||||
-- [[ ||PORTFO:H H || ]],
|
||||
-- [[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
|
||||
-- [[ ||_____,_________________________,_____|| ]],
|
||||
-- [[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
|
||||
-- [[ //"""""""|_____|=----------=|______|"""""""\ ]],
|
||||
-- [[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
|
||||
-- [[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
|
||||
-- [[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
|
||||
-- [[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
|
||||
-- [[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
|
||||
-- [[|------"--------------------------------------"-------|]],
|
||||
-- [[`-----------------------------------------------------']],
|
||||
|
||||
-- simpler header
|
||||
--[[
|
||||
|
|
|
@ -4,8 +4,10 @@ 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()
|
||||
--end,
|
||||
polish = function()
|
||||
-- todo: convert to lua
|
||||
vim.cmd('cnoremap sudow w !sudo tee % >/dev/null')
|
||||
end,
|
||||
}
|
||||
|
||||
return config
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
return function(config)
|
||||
-- for compatability with nvim-transparent
|
||||
config.background_color = "#000000"
|
||||
return config
|
||||
end
|
Loading…
Reference in a new issue