Added more install libs and nushell env vars

master
Wynd 2024-11-02 17:08:31 +02:00
parent ae23157b3e
commit 4a75c65d48
2 changed files with 20 additions and 6 deletions

View File

@ -6,6 +6,14 @@
$env.GREP_COLORS = 'ms01;04;32' $env.GREP_COLORS = 'ms01;04;32'
$env.TIMEFMT = "real\t%E\nuser\t%U\nsys\t%S" $env.TIMEFMT = "real\t%E\nuser\t%U\nsys\t%S"
$env.GEM_HOME = "~/.gems"
$env.BUN_INSTALL = "~/.bun"
$env.ASDF_DIR = "~/.asdf"
$env.PATH = "~/.gems/bin" | append $env.PATH
$env.PATH = "~/.nimble/bin" | append $env.PATH
$env.PATH = "~/.bun/bin" | append $env.PATH
# aliases # aliases
alias python = python3 alias python = python3
alias pip = pip3 alias pip = pip3
@ -932,6 +940,7 @@ $env.config = {
} }
source ~/.cache/zoxide/init.nu source ~/.cache/zoxide/init.nu
source ~/.asdf/asdf.nu
source ./completions/git.nu source ./completions/git.nu
source ./completions/cargo.nu source ./completions/cargo.nu

View File

@ -78,8 +78,9 @@ java_install() {
asdf_plugin() { asdf_plugin() {
plugin=$1 plugin=$1
version="${2:-latest}" repo=$2
asdf plugin add $plugin \ version="${3:-latest}"
asdf plugin add $plugin $repo \
&& asdf install $plugin $version \ && asdf install $plugin $version \
&& asdf global $plugin $version && asdf global $plugin $version
} }
@ -125,8 +126,8 @@ sudo apt update -yqq
export PATH=$PATH:/home/$USER/.local/bin export PATH=$PATH:/home/$USER/.local/bin
# Core # Core
packages="make cmake xclip coreutils git apt-transport-https ca-certificates curl wget gnupg lsb-release coreutils sed build-essential \ packages="make cmake autoconf xclip coreutils git apt-transport-https ca-certificates curl wget gnupg lsb-release coreutils sed build-essential \
libssl-dev libudev-dev lld \ libssl-dev libudev-dev libyaml-dev libconfig libfontconfig-dev libncurses-dev lld \
firefox git python3-pip zsh mpv figlet lolcat sqlitebrowser flatpak nala tmux filezilla \ firefox git python3-pip zsh mpv figlet lolcat sqlitebrowser flatpak nala tmux filezilla \
ffmpeg libavcodec-extra ubuntu-restricted-extras \ ffmpeg libavcodec-extra ubuntu-restricted-extras \
gnome-shell-extensions gnome-tweak-tool gnome-menus gnome-user-share dconf-editor gparted alacarte \ gnome-shell-extensions gnome-tweak-tool gnome-menus gnome-user-share dconf-editor gparted alacarte \
@ -195,8 +196,12 @@ tar_git_install "btop" "btop.tbz" "aristocratos/btop" "btop-x86_64-linux-musl.tb
# asdf # asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
. ~/.asdf/asdf.sh . ~/.asdf/asdf.sh
asdf_plugin nodejs asdf_plugin erlang "https://github.com/asdf-vm/asdf-erlang"
asdf_plugin lua-language-server asdf_plugin elixir "https://github.com/asdf-vm/asdf-elixir"
asdf_plugin nodejs "https://github.com/asdf-vm/asdf-nodejs"
asdf_plugin lua-language-server "https://github.com/bellini666/asdf-lua-language-server"
asdf_plugin ruby "https://github.com/asdf-vm/asdf-ruby"
asdf_plugin lua "https://github.com/Stratus3D/asdf-lua"
# npm global installs # npm global installs
npm i -g bash-language-server vscode-langservers-extracted pyright prettier sass npm i -g bash-language-server vscode-langservers-extracted pyright prettier sass