move manually installed packages to common directory
This commit is contained in:
parent
a814de9b69
commit
fe737153dc
|
@ -3,6 +3,6 @@
|
|||
/gcloud
|
||||
/git/.git-credentials
|
||||
/git/github_token
|
||||
/nodejs/installation
|
||||
/installations/*/
|
||||
/nodejs/.npmrc
|
||||
/ssh
|
||||
|
|
|
@ -9,7 +9,7 @@ Things that are not checked in but which should live in this directory:
|
|||
- `gcloud/` - Google Cloud SDK configuration files
|
||||
- `git/.git-credentials` - plaintext Git credential store
|
||||
- `git/github_token` - GitHub Personal Access Token with read access to repos
|
||||
- `nodejs/installation/` - Node.js installation
|
||||
- `installations/` - Various installations
|
||||
- `nodejs/.npmrc` - npm credentials, config, etc.
|
||||
- `ssh/` - SSH keys, config, etc.
|
||||
|
||||
|
|
28
config.sh
28
config.sh
|
@ -11,7 +11,7 @@ while :; do
|
|||
vscode- 'VS Code' vscode-ext ' Install extensions' vscode-linux ' Create config symlinks (Linux) ' vscode-win ' Create config symlinks (Windows)' vscode-local-win ' Create local extension symlink (Windows)' \
|
||||
wsltty- 'WSLtty' wsltty ' Create config symlinks (Windows)' \
|
||||
nodejs- 'Node.js' nodejs ' Install' nodejs-pnpm ' Install pnpm' nodejs-bin ' Link to Node binaries from ~/bin' nodejs-npmrc ' Create .npmrc symlink' nodejs-pkg ' Create ../{pkg} symlinks' nodejs-eslint ' Create ../.eslintrc.js symlink' nodejs-setcap ' Let non-root bind to privileged ports' nodejs-npmsh ' Set up npm*.sh scripts' \
|
||||
gcloud- 'Google Cloud SDK' gcloud-install ' Install ' gcloud ' Create config symlinks' \
|
||||
gcloud- 'Google Cloud SDK' gcloud ' Install' gcloud-bin ' Link to gcloud binary from ~/bin' gcloud-config ' Create config symlinks' \
|
||||
tmux- 'tmux' tmux ' Create config symlinks' \
|
||||
apt- 'apt' apt-refresh ' update/upgrade/autoremove/autoclean' apt-fakeroot ' Install and use fakeroot-tcp' apt-jq ' Install jq' apt-make ' Install make' \
|
||||
docker- 'Docker' docker-cli ' Install CLI' docker-relay ' Install relay (WSL)' \
|
||||
|
@ -81,14 +81,14 @@ while :; do
|
|||
nodejs)
|
||||
NODE_VERSION="$(whiptail --inputbox 'Version?' 10 20 3>&2 2>&1 1>&3-)" &&
|
||||
[ "$NODE_VERSION" ] &&
|
||||
mkdir -p "$ROOT"/nodejs/installation
|
||||
wget https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz -O- | tar xJC "$ROOT"/nodejs/installation --strip-components=1
|
||||
mkdir -p "$ROOT"/installations/nodejs &&
|
||||
wget https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz -O- | tar xJC "$ROOT"/installations/nodejs --strip-components=1
|
||||
;;
|
||||
nodejs-pnpm)
|
||||
PATH="$ROOT/nodejs/installation/bin:$PATH" npm i -g pnpm
|
||||
PATH="$ROOT/installations/nodejs/bin:$PATH" npm i -g pnpm
|
||||
;;
|
||||
nodejs-bin)
|
||||
"$ROOT"/bash/2path.sh "$ROOT"/nodejs/installation/bin/*
|
||||
"$ROOT"/bash/2path.sh "$ROOT"/installations/nodejs/bin/*
|
||||
;;
|
||||
nodejs-npmrc)
|
||||
cd &&
|
||||
|
@ -108,17 +108,23 @@ while :; do
|
|||
ln -s ${ROOT##*/}/nodejs/.eslintrc.js "$ROOT"/../.eslintrc.js
|
||||
;;
|
||||
nodejs-setcap)
|
||||
sudo setcap 'cap_net_bind_service+ep' "$ROOT"/nodejs/installation/bin/node
|
||||
sudo setcap 'cap_net_bind_service+ep' "$ROOT"/installations/nodejs/bin/node
|
||||
;;
|
||||
nodejs-npmsh)
|
||||
"$ROOT"/bash/2path.sh "$ROOT"/nodejs/npm*.sh
|
||||
;;
|
||||
gcloud-install)
|
||||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - &&
|
||||
sudo add-apt-repository "deb https://packages.cloud.google.com/apt cloud-sdk main" &&
|
||||
sudo apt-get install google-cloud-sdk
|
||||
;;
|
||||
gcloud)
|
||||
GCLOUD_VERSION="$(whiptail --inputbox 'Version?' 10 20 3>&2 2>&1 1>&3-)" &&
|
||||
[ "$GCLOUD_VERSION" ] &&
|
||||
rm -rf "$ROOT"/installations/gcloud &&
|
||||
mkdir "$ROOT"/installations/gcloud &&
|
||||
wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz -O- | tar xzC "$ROOT"/installations/gcloud --strip-components=1
|
||||
;;
|
||||
gcloud-bin)
|
||||
"$ROOT"/bash/2path.sh "$ROOT"/installations/gcloud/bin/gcloud
|
||||
;;
|
||||
gcloud-config)
|
||||
mkdir -p ~/.config &&
|
||||
cd ~/.config &&
|
||||
rm -rf gcloud &&
|
||||
ln -s "$ROOT"/gcloud
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# Installations
|
||||
|
||||
This directory holds various manually installed packages.
|
Loading…
Reference in New Issue