From d0baf861fd1aa557d6cb7703d5a7992d533fda9c Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Fri, 25 Oct 2024 20:36:08 +0300 Subject: [PATCH] making it so npm Usage: npm install install all the dependencies in your project npm install add the dependency to your project npm test run this project's tests npm run run the script named npm -h quick help on npm -l display usage info for all commands npm help search for help on npm help npm more involved overview All commands: access, adduser, audit, bugs, cache, ci, completion, config, dedupe, deprecate, diff, dist-tag, docs, doctor, edit, exec, explain, explore, find-dupes, fund, get, help, help-search, hook, init, install, install-ci-test, install-test, link, ll, login, logout, ls, org, outdated, owner, pack, ping, pkg, prefix, profile, prune, publish, query, rebuild, repo, restart, root, run-script, sbom, search, set, shrinkwrap, star, stars, start, stop, team, test, token, uninstall, unpublish, unstar, update, version, view, whoami Specify configs in the ini-formatted file: /home/siina/.npmrc or on the command line via: npm --key=value More configuration info: npm help config Configuration fields: npm help 7 config npm@10.8.2 /usr/lib64/node_modules/npm won't actually be global --- profile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/profile b/profile index b1dc06d..b17216d 100644 --- a/profile +++ b/profile @@ -8,7 +8,6 @@ if test -z "${XDG_RUNTIME_DIR}"; then fi fi -export XDG_CURRENT_DESKTOP=sway # The city's finest exports! export GIT_EDITOR="nvim" @@ -18,6 +17,9 @@ export SCREENSHOT_DIR="$HOME/Screenshots" export LC_MESSAGES="C.UTF-8" export TERM="xterm-256color" +export NPM_CONFIG_PREFIX="$HOME/.local/" +export PATH="$PATH:$NPM_CONFIG_PREFIX/bin" + # Let's get some private environment vars source $HOME/.config/private.env @@ -26,10 +28,12 @@ export LESSHISTFILE=- # Launch sway! if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - dbus-run-session sway + export XDG_CURRENT_DESKTOP=sway + dbus-run-session sway fi alias ccat="highlight -O ansi $@" alias ls="ls -h --color=auto" alias vim="nvim $@" alias wget="wget --hsts-file $HOME/.cache/wget/hsts" +alias profanity="konsole --profile Profanity --workdir $HOME/Downloads -e /usr/bin/profanity & ; disown"