2023-12-07 01:03:55 +02:00
|
|
|
# Set XDG_RUNTIME_DIR for sway
|
|
|
|
if test -z "${XDG_RUNTIME_DIR}"; then
|
|
|
|
UID="$(id -u)"
|
|
|
|
export XDG_RUNTIME_DIR=/run/user/"${UID}"
|
|
|
|
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
|
|
|
mkdir "${XDG_RUNTIME_DIR}"
|
|
|
|
chmod 0700 "${XDG_RUNTIME_DIR}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2024-04-16 02:45:08 +03:00
|
|
|
|
2022-01-26 23:40:52 +02:00
|
|
|
# The city's finest exports!
|
2023-01-07 16:12:59 +02:00
|
|
|
export GIT_EDITOR="nvim"
|
2022-05-01 10:25:06 +03:00
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
2024-02-09 13:45:07 +02:00
|
|
|
export SCREENSHOT_DIR="$HOME/Screenshots"
|
2024-04-16 02:45:08 +03:00
|
|
|
export LC_MESSAGES="C.UTF-8"
|
|
|
|
export TERM="xterm-256color"
|
2022-03-13 08:44:40 +02:00
|
|
|
|
making it so npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
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 <command> --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
2024-10-25 20:36:08 +03:00
|
|
|
export NPM_CONFIG_PREFIX="$HOME/.local/"
|
|
|
|
export PATH="$PATH:$NPM_CONFIG_PREFIX/bin"
|
|
|
|
|
2022-05-01 10:25:06 +03:00
|
|
|
# Let's get some private environment vars
|
2024-04-01 07:27:41 +03:00
|
|
|
source $HOME/.config/private.env
|
2022-05-01 10:25:06 +03:00
|
|
|
|
|
|
|
# Let's keep $HOME clean
|
2024-04-01 07:27:41 +03:00
|
|
|
export LESSHISTFILE=-
|
2022-05-01 10:25:06 +03:00
|
|
|
|
2023-12-07 01:03:55 +02:00
|
|
|
# Launch sway!
|
|
|
|
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
making it so npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
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 <command> --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
2024-10-25 20:36:08 +03:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
|
|
dbus-run-session sway
|
2023-12-07 01:03:55 +02:00
|
|
|
fi
|
|
|
|
|
2023-01-17 16:50:53 +02:00
|
|
|
alias ccat="highlight -O ansi $@"
|
2024-10-28 01:35:15 +02:00
|
|
|
alias ls="eza --time-style '+%Y.%m.%d %H.%M' --colour always --icons --group-directories-first --git $@"
|
2023-01-17 12:25:23 +02:00
|
|
|
alias vim="nvim $@"
|
2024-10-28 01:35:15 +02:00
|
|
|
alias wget="wget --hsts-file $HOME/.cache/wget-hsts"
|