diff --git a/.chezmoiignore b/.chezmoiignore index cbc4a8a1..9367cf33 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,6 +1,4 @@ LICENSE README.md -pictures/wallpapers/README.md -configs scripts -bootstrap.sh +Brewfile diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 346194b2..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -src/nvim/* linguist-vendored diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 61626eac..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "pictures/wallpapers"] - path = pictures/wallpapers - url = git@github.com:joelazar/wallpapers.git diff --git a/Brewfile b/Brewfile new file mode 100644 index 00000000..5616a1cb --- /dev/null +++ b/Brewfile @@ -0,0 +1,134 @@ +tap "buo/cask-upgrade" +tap "homebrew/bundle" +tap "homebrew/cask" +tap "homebrew/cask-fonts" +tap "homebrew/core" +brew "age" +brew "atuin" +brew "bat" +brew "gcc" +brew "btop" +brew "chezmoi" +brew "coreutils" +brew "curl" +brew "deno" +brew "direnv" +brew "docker" +brew "docker-compose" +brew "duf" +brew "exercism" +brew "eza" +brew "fastfetch" +brew "fd" +brew "ffmpeg" +brew "ffmpegthumbnailer" +brew "fish" +brew "fisher" +brew "fnm" +brew "fzf" +brew "gh" +brew "git-delta" +brew "git-lfs" +brew "node" +brew "gitmoji" +brew "go" +brew "gum" +brew "htop" +brew "python@3.12" +brew "httpie" +brew "hugo" +brew "imagemagick" +brew "ipython" +brew "jc" +brew "jq" +brew "jupyterlab" +brew "k9s" +brew "kubernetes-cli" +brew "lazygit" +brew "lftp" +brew "luarocks" +brew "mas" +brew "mpv" +brew "ncdu" +brew "ncspot" +brew "neovim" +brew "newsboat" +brew "nnn" +brew "pgcli" +brew "poetry" +brew "postgresql@14" +brew "qalculate-qt" +brew "qrencode" +brew "rclone" +brew "restic" +brew "ripgrep" +brew "rust" +brew "sad" +brew "sd" +brew "solo2-cli" +brew "starship" +brew "tailscale" +brew "tealdeer" +brew "tokei" +brew "topgrade" +brew "translate-shell" +brew "transmission-cli" +brew "watchexec" +brew "wget" +brew "yarn" +brew "zoxide" +cask "bitwarden" +cask "calibre" +cask "discord" +cask "firefox" +cask "font-fira-code" +cask "font-fira-code-nerd-font" +cask "google-chrome" +cask "google-cloud-sdk" +cask "kitty" +cask "mullvadvpn" +cask "obsidian" +cask "slack" +cask "sonos" +cask "spotify" +cask "stats" +cask "visual-studio-code" +mas "Microsoft To Do", id: 1274495053 +mas "reMarkable", id: 1276493162 +vscode "aaron-bond.better-comments" +vscode "alefragnani.bookmarks" +vscode "amimaro.remix-run-snippets" +vscode "bradlc.vscode-tailwindcss" +vscode "catppuccin.catppuccin-vsc" +vscode "christian-kohler.path-intellisense" +vscode "dbaeumer.vscode-eslint" +vscode "esbenp.prettier-vscode" +vscode "firefox-devtools.vscode-firefox-debug" +vscode "formulahendry.auto-rename-tag" +vscode "formulahendry.code-runner" +vscode "github.codespaces" +vscode "github.copilot" +vscode "github.copilot-chat" +vscode "github.vscode-pull-request-github" +vscode "golang.go" +vscode "humao.rest-client" +vscode "modular-mojotools.vscode-mojo" +vscode "ms-python.debugpy" +vscode "ms-python.isort" +vscode "ms-python.python" +vscode "ms-python.vscode-pylance" +vscode "ms-toolsai.jupyter" +vscode "ms-toolsai.jupyter-keymap" +vscode "ms-toolsai.jupyter-renderers" +vscode "ms-toolsai.vscode-jupyter-cell-tags" +vscode "ms-toolsai.vscode-jupyter-slideshow" +vscode "ms-vsliveshare.vsliveshare" +vscode "prisma.prisma" +vscode "redhat.vscode-yaml" +vscode "vscode-icons-team.vscode-icons" +vscode "vscodevim.vim" +vscode "wholroyd.jinja" +vscode "xabikos.javascriptsnippets" +vscode "yoavbls.pretty-ts-errors" +vscode "yzhang.markdown-all-in-one" +vscode "zainchen.json" diff --git a/configs/code_extensions b/configs/code_extensions deleted file mode 100644 index e6736f4f..00000000 --- a/configs/code_extensions +++ /dev/null @@ -1,36 +0,0 @@ -aaron-bond.better-comments -alefragnani.Bookmarks -amimaro.remix-run-snippets -bradlc.vscode-tailwindcss -Catppuccin.catppuccin-vsc -christian-kohler.path-intellisense -dbaeumer.vscode-eslint -esbenp.prettier-vscode -firefox-devtools.vscode-firefox-debug -formulahendry.auto-rename-tag -formulahendry.code-runner -GitHub.codespaces -GitHub.copilot -GitHub.copilot-chat -GitHub.vscode-pull-request-github -golang.go -humao.rest-client -modular-mojotools.vscode-mojo -ms-python.isort -ms-python.python -ms-python.vscode-pylance -ms-toolsai.jupyter -ms-toolsai.jupyter-keymap -ms-toolsai.jupyter-renderers -ms-toolsai.vscode-jupyter-cell-tags -ms-toolsai.vscode-jupyter-slideshow -ms-vsliveshare.vsliveshare -Prisma.prisma -redhat.vscode-yaml -vscode-icons-team.vscode-icons -vscodevim.vim -wholroyd.jinja -xabikos.JavaScriptSnippets -yoavbls.pretty-ts-errors -yzhang.markdown-all-in-one -ZainChen.json diff --git a/configs/my_firewall.rules b/configs/my_firewall.rules deleted file mode 100644 index 322a07bc..00000000 --- a/configs/my_firewall.rules +++ /dev/null @@ -1,22 +0,0 @@ -*filter -:INPUT DROP [0:0] -:FORWARD DROP [0:0] -:OUTPUT ACCEPT [0:0] -:TCP - [0:0] -:UDP - [0:0] --A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT --A INPUT -i lo -j ACCEPT --A INPUT -m conntrack --ctstate INVALID -j DROP --A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT --A INPUT -p udp -m conntrack --ctstate NEW -j UDP --A INPUT -p tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP --A INPUT -p tcp -j REJECT --reject-with tcp-reset --A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable --A INPUT -j REJECT --reject-with icmp-proto-unreachable --A TCP -p tcp -m tcp --dport 57621 -m comment --comment spotify -j ACCEPT --A UDP -p udp -m udp --dport 57621 -m comment --comment spotify -j ACCEPT --A UDP -p udp -m udp --sport 1900 --dport 1025:65535 -m comment --comment spotify -j ACCEPT --A UDP -p udp -m udp --sport 5353 --dport 1025:65535 -m comment --comment spotify -j ACCEPT --A UDP -p udp -m udp --dport 1714:1764 -m comment --comment kde-connect -j ACCEPT --A TCP -p tcp -m tcp --dport 1714:1764 -m comment --comment kde-connect -j ACCEPT -COMMIT diff --git a/configs/ublock_config.json b/configs/ublock_config.json deleted file mode 100644 index 4413bb86..00000000 --- a/configs/ublock_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "timeStamp": 1659791808804, - "version": "1.43.0", - "userSettings": { - "advancedUserEnabled": true, - "cloudStorageEnabled": true, - "externalLists": "https://raw.githubusercontent.com/quenhus/uBlock-Origin-dev-filter/main/dist/google_duckduckgo/global.txt", - "importedLists": [ - "https://raw.githubusercontent.com/quenhus/uBlock-Origin-dev-filter/main/dist/google_duckduckgo/global.txt" - ], - "popupPanelSections": 63 - }, - "selectedFilterLists": [ - "user-filters", - "ublock-filters", - "ublock-badware", - "ublock-privacy", - "ublock-quick-fixes", - "ublock-abuse", - "ublock-unbreak", - "easylist", - "easyprivacy", - "urlhaus-1", - "fanboy-annoyance", - "plowe-0", - "HUN-0", - "https://raw.githubusercontent.com/quenhus/uBlock-Origin-dev-filter/main/dist/google_duckduckgo/global.txt" - ], - "hiddenSettings": {}, - "whitelist": [ - "about-scheme", - "chrome-extension-scheme", - "chrome-scheme", - "edge-scheme", - "moz-extension-scheme", - "opera-scheme", - "vivaldi-scheme", - "wyciwyg-scheme" - ], - "dynamicFilteringString": "behind-the-scene * * noop\nbehind-the-scene * inline-script noop\nbehind-the-scene * 1p-script noop\nbehind-the-scene * 3p-script noop\nbehind-the-scene * 3p-frame noop\nbehind-the-scene * image noop\nbehind-the-scene * 3p noop", - "urlFilteringString": "", - "hostnameSwitchesString": "no-large-media: behind-the-scene false\nno-csp-reports: * true\nno-strict-blocking: www.wikiwand.com true", - "userFilters": "" -} \ No newline at end of file diff --git a/dot_clang-format b/dot_clang-format deleted file mode 100644 index 8584a2d6..00000000 --- a/dot_clang-format +++ /dev/null @@ -1,32 +0,0 @@ -BasedOnStyle: Chromium - -# Allow double brackets such as std::vector>. -Standard: Cpp11 - -# Indent 4 spaces at a time. -IndentWidth: 4 - -# Keep lines under 100 columns long. -ColumnLimit: 100 - -# Always break before braces -BreakBeforeBraces: Allman - -# Indent case labels. -IndentCaseLabels: true - -# Right-align pointers and references -PointerAlignment: Right - -# Align, align everything :) -AlignOperands: true -AlignConsecutiveAssignments: true - -# Use 2 space negative offset for access modifiers -AccessModifierOffset: -2 - -# Do not use a single line for short switch case labels -AllowShortCaseLabelsOnASingleLine: false - -# Useful for spacing out functions in classes -KeepEmptyLinesAtTheStartOfBlocks: true diff --git a/dot_config/btop/btop.conf b/dot_config/btop/btop.conf index 2a612b8c..f58fb9b4 100644 --- a/dot_config/btop/btop.conf +++ b/dot_config/btop/btop.conf @@ -2,7 +2,7 @@ #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" -color_theme = "/home/joelazar/.config/btop/themes/catppuccin_mocha.theme" +color_theme = "/Users/joelazar/.config/btop/themes/catppuccin_mocha.theme" #* If the theme set background should be shown, set to False if you want terminal background transparency. theme_background = True diff --git a/dot_config/chromium-flags.conf b/dot_config/chromium-flags.conf deleted file mode 100644 index 15a81c3a..00000000 --- a/dot_config/chromium-flags.conf +++ /dev/null @@ -1,13 +0,0 @@ -# enable wayland ---ozone-platform-hint=auto -# force GPU acceleration ---ignore-gpu-blocklist ---enable-gpu-rasterization ---enable-zero-copy ---disable-gpu-driver-bug-workarounds -# enable vulkan ---use-vulkan ---enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,VaapiVideoDecoder,VaapiVideoEncoder,VaapiIgnoreDriverChecks,WebUIDarkMode,WaylandWindowDecorations,TouchpadOverscrollHistoryNavigation -# custom settings ---force-dark-mode ---password-store=basic diff --git a/dot_config/k9s/.keep b/dot_config/k9s/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 9d59f829..5af9405d 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -24,10 +24,10 @@ #: italic_font Operator Mono Book Italic #: bold_italic_font Operator Mono Medium Italic -font_family FiraCodeNF-Reg -bold_font FiraCodeNF-Med -italic_font FiraCodeNF-Light -bold_italic_font FiraCodeNF-Med +font_family FiraCode-Regular +bold_font FiraCode-Medium +italic_font FiraCode-Light +bold_italic_font FiraCode-Medium font_size 12.0 @@ -131,15 +131,15 @@ font_size 12.0 #: Fira Code #: Fira Code Bold (FiraCode-Bold) #: Fira Code Light (FiraCode-Light) -#: Fira Code Medium (FiraCode-Medium) -#: Fira Code Regular (FiraCode-Regular) -#: Fira Code Retina (FiraCode-Retina) +#: Fira Code Medium (FiraCode-Mediumium) +#: Fira Code Regular (FiraCode-Regularular) +#: Fira Code Retina (FiraCode-Retinaina) #: The part in brackets is the PostScript name. #: Enable alternate zero and oldstyle numerals:: -#: font_features FiraCode-Retina +zero +onum +#: font_features FiraCode-Retinaina +zero +onum #: Enable only alternate zero in the bold font:: @@ -156,12 +156,12 @@ font_size 12.0 #: font_features UnifontMedium +isol -medi -fina -init # font_features MonaspaceNeon-Regular +calt +liga +dlig +ss01 +ss02 +ss03 +ss04 +ss05 +ss06 +ss07 +ss08 -font_features FiraCodeNF-Bold +ss02 +ss03 +ss05 +ss07 -font_features FiraCodeNF-Light +ss02 +ss03 +ss05 +ss07 -font_features FiraCodeNF-Med +ss02 +ss03 +ss05 +ss07 -font_features FiraCodeNF-Reg +ss02 +ss03 +ss05 +ss07 -font_features FiraCodeNF-Ret +ss02 +ss03 +ss05 +ss07 -font_features FiraCodeNF-SemBd +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-Bold +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-Light +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-Medium +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-Regular +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-Retina +ss02 +ss03 +ss05 +ss07 +font_features FiraCode-SemiBold +ss02 +ss03 +ss05 +ss07 # modify_font diff --git a/dot_flake8 b/dot_flake8 deleted file mode 100644 index 7da1f960..00000000 --- a/dot_flake8 +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length = 100 diff --git a/dot_k9s/config.yml b/dot_k9s/config.yml index c6a5c6a8..3397773f 100644 --- a/dot_k9s/config.yml +++ b/dot_k9s/config.yml @@ -14,49 +14,6 @@ k9s: fullScreenLogs: false textWrap: false showTime: false - currentContext: aks - currentCluster: aks - clusters: - aks: - namespace: - active: production - favorites: - - production - - all - view: - active: pod - featureGates: - nodeShell: true - shellPod: - image: busybox:latest - command: [] - args: [] - namespace: default - limits: - cpu: 100m - memory: 100Mi - portForwardAddress: localhost - aks-staging: - namespace: - active: staging - favorites: - - staging - - debug - - all - - ambassador - view: - active: pod - featureGates: - nodeShell: false - shellPod: - image: busybox:latest - command: [] - args: [] - namespace: default - limits: - cpu: 100m - memory: 100Mi - portForwardAddress: localhost thresholds: cpu: critical: 90 diff --git a/git/.keep b/git/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/dot_config/jesseduffield/lazygit/config.yml b/private_Library/private_Application Support/lazygit/config.yml similarity index 100% rename from dot_config/jesseduffield/lazygit/config.yml rename to private_Library/private_Application Support/lazygit/config.yml diff --git a/dot_config/gitmoji-nodejs/config.json b/private_Library/private_Preferences/gitmoji-nodejs/config.json similarity index 100% rename from dot_config/gitmoji-nodejs/config.json rename to private_Library/private_Preferences/gitmoji-nodejs/config.json diff --git a/private_dot_local/bin/executable_custom-update b/private_dot_local/bin/executable_custom-update index 5774dcfb..b76af2f9 100644 --- a/private_dot_local/bin/executable_custom-update +++ b/private_dot_local/bin/executable_custom-update @@ -17,8 +17,8 @@ execute "gcloud components update --quiet" "Update gcloud cli" # print_in_purple "Update mojo\n" # execute "modular update mojo" "Update mojo 🔥" -print_in_purple "Clean up unused packages\n" -clean_up_unused_packages +# print_in_purple "Clean up unused packages\n" +# clean_up_unused_packages -print_in_purple "Clean up old journal files\n" -execute "sudo journalctl --vacuum-time=2weeks" +# print_in_purple "Clean up old journal files\n" +# execute "sudo journalctl --vacuum-time=2weeks" diff --git a/private_dot_local/bin/executable_errlogs b/private_dot_local/bin/executable_errlogs deleted file mode 100644 index 99ee5fea..00000000 --- a/private_dot_local/bin/executable_errlogs +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -printf "%s\n" ----------- -printf "%s\n" "[#] JOURNAL" -printf "%s\n" ----------- -journalctl -b -p 0..3 $argv -printf "%s\n" ------------------------ -printf "%s\n" "[#] SYSTEMD FAILED UNITS" -printf "%s\n" ------------------------ -sys_srv=$(systemctl --failed | jc --systemctl | jq -r '.[].unit') -if [ "$sys_srv[1]" != 0 ]; then - printf "%s\n" "$sys_srv" -else - printf "%s\n" NONE -fi -printf "%s\n" ----------------------------- -printf "%s\n" "[#] SYSTEMD USER FAILED UNITS" -printf "%s\n" ----------------------------- -usr_srv=$(systemctl --user --failed | jc --systemctl | jq -r '.[].unit') -if [ "$usr_srv[1]" != 0 ]; then - printf "%s\n\n" "$usr_srv" -else - printf "%s\n\n" NONE -fi diff --git a/private_dot_local/bin/executable_remarkable b/private_dot_local/bin/executable_remarkable deleted file mode 100644 index b252ef80..00000000 --- a/private_dot_local/bin/executable_remarkable +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -bottles-cli run -p reMarkable -b 'Remarkable' &>/dev/null diff --git a/run_once_install_packages.sh b/run_once_install_packages.sh index 874501b9..1a3cdec7 100755 --- a/run_once_install_packages.sh +++ b/run_once_install_packages.sh @@ -19,180 +19,39 @@ fi ask_for_sudo -# TODO: enable rpmfusion repos -# $ sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +# TODO: install homebrew +# +# set fish as default +# sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells' +# chsh -s /opt/homebrew/bin/fish +# # install chezmoi --> -# sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin -# enable flathub -# flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo +# /opt/homebrew/bin/brew install chezmoi -print_in_purple "Browsers\n" - -install_package "firefox" -install_package "chromium" - -print_in_purple "Basics\n" - -install_package "bat" -install_package "docker" -install_package "eza" -install_package "fd-find" -install_package "git" -install_package "git-lfs" -install_package "htop" -install_package "httpie" -install_package "neovim" -install_package "nnn" -install_package "python" -install_package "ripgrep" -install_package "sd" -install_package "zoxide" - -print_in_purple "Infrastructure\n" - -install_package "docker-compose" -install_package "kubernetes-client" - -print_in_purple "Languages\n" - -install_package "clang" -install_package "g++" -install_package "go" -install_package "nodejs" -install_package "rust" +# brew bundle install # TODO: add mojo print_in_purple "Package managers\n" -install_package "cargo" -install_package "luarocks" -install_package "npm" -install_package "python-pip" -install_package "python-poetry" -install_package "yarnpkg" - -print_in_purple "Interpreters\n" - -install_package "ipython" - -print_in_purple "Misc\n" - -install_package "python3-neovim" -install_package "texlive-latex" - -print_in_purple "Development tools\n" - -install_package "curl" -install_package "direnv" -install_package "exercism" -install_package "git-delta" -install_package "gh" -install_package "hugo" -install_package "jupyterlab" -install_package "postgresql" -install_package "pgcli" - -print_in_purple "Multimedia\n" - -install_package "mpv" - -print_in_purple "Miscellaneous\n" - -install_package "calibre" -install_package "lftp" -install_package "ncdu" -install_package "qalculate" -install_package "qrencode" -install_package "tealdeer" -install_package "tokei" -install_package "translate-shell" -install_package "transmission-cli" +pyenv install_nnn_plugins -print_in_purple "Fonts\n" - -# TODO: well, this one is not nerd font patched -install_package "fira-code-fonts" - -print_in_purple "Shell\n" - -install_package "fish" -# TODO: install_package "fisher" -# execute "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" "Install fisher" -install_package "kitty" - -print_in_purple "Utilities\n" - -install_package "age" -install_package "btop" -install_package "duf" -install_package "fastfetch" -install_package "ffmpeg" -install_package "ffmpegthumbnailer" -install_package "fzf" -install_package "jq" -install_package "jc" -# NOTE: needed for cargo-update -install_package "openssl-devel" -install_package "sad" - -# TODO: add mullvad repo -# sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo -install_package "mullvad-vpn" -install_package "newsboat" -install_package "rclone" -install_package "restic" -install_package "wget" - -print_in_purple "Asahi specific\n" - -install_package "asahi-nvram" - -# NOTE: not working yet -# install_package "bottles" -# install_package "tailscale" -# install_package "solo2-cli" -# install_package "wine" - -# TODO: google-cloud-cli installed with: -# curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-462.0.1-linux-x86_64.tar.gz -# NOTE: python-grpcio is required for some google-cloud-cli commands -install_package "python3-grpcio" - print_in_purple "NPM packages\n" -install_npm_package "gitmoji-cli" install_npm_package "npm-check" install_npm_package "yalc" print_in_purple "Go packages\n" install_go_package "github.com/cosmos72/gomacro@latest" "gomacro" -install_go_package "github.com/charmbracelet/gum@latest" "gum" -install_go_package "github.com/derailed/k9s@latest" "k9s" -install_go_package "github.com/jesseduffield/lazygit@latest" "lazygit" print_in_purple "Rust packages\n" -install_rust_package "atuin" -install_rust_package "cargo-update" -# TODO: deno not working yet -# install_rust_package "deno" -install_rust_package "fnm" -install_rust_package "starship" -install_rust_package "topgrade" -install_rust_package "watchexec-cli" - print_in_purple "GH plugins\n" # TODO: check if gh was authenticated already install_gh_plugin "dlvhdr/gh-dash" install_gh_plugin "github/gh-copilot" - -# TODO: install flatpak apps -# install_rust_package "ncspot" -# install_package "obsidian" -# install_package "armcord" diff --git a/scripts/utils_install b/scripts/utils_install index 71e8b786..457c39c2 100755 --- a/scripts/utils_install +++ b/scripts/utils_install @@ -22,16 +22,6 @@ install_nnn_plugins() { print_result $? "Install/update nnn plugins" } -install_package() { - declare -r PACKAGE="$1" - - if ! package_is_installed "$PACKAGE"; then - execute "sudo dnf install -y $PACKAGE" "$PACKAGE" - else - print_success "$PACKAGE" - fi -} - install_fish_plugin() { declare -r PACKAGEPATH="$1" declare -r PACKAGENAME="$2" @@ -49,7 +39,7 @@ install_go_package() { install_npm_package() { declare -r PACKAGENAME="$1" - execute "sudo npm install -g $PACKAGENAME" "$PACKAGENAME" + execute "npm install -g $PACKAGENAME" "$PACKAGENAME" } install_rust_package() { @@ -74,11 +64,3 @@ install_gh_plugin() { print_success "$PLUGIN" fi } - -package_is_installed() { - echo $INSTALLED_PACKAGES | grep -q " $1 " -} - -clean_up_unused_packages() { - sudo dnf autoremove -}