package
stringlengths
5
53
path
stringlengths
3
258
content
stringlengths
0
141M
@!!!!!/elemental
main/.keep
@!!!!!/elemental
main/demo.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test</title> </head> <script type="module"> // normal method: // const {html} = await import("https://cdn...
@!!!!!/elemental
main/deno_usage.js
// - import this file // - call a function, giving it a nearby main.jsx file // - the main.jsx imports elemental.createElement as html // - use deno's bundler to convert all the JSX into regular JS // - wrap the output inside of an index.html // - optionally start a server // - serve the index.html // - allow a...
@!!!!!/elemental
main/deno.bundle.js
var lu=[Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray,Int16Array,Int32Array,Int8Array,Float32Array,Float64Array,globalThis.BigInt64Array,globalThis.BigUint64Array].filter(u=>u),Eu=new Set([RegExp,Date,URL,...lu,globalThis.ArrayBuffer,globalThis.DataView]),Bu=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol....
@!!!!!/elemental
main/deno.js
import { toString, indent } from "https://deno.land/x/good@1.6.1.3/string.js" // import { toString, indent } from "/Users/jeffhykin/repos/good-js/source/string.js" import { allKeyDescriptions, } from 'https://deno.land/x/good@0.7.8/value.js' // minimized xhtm from: https://github.com/dy/xhtm const FIELD = "\ue0...
@!!!!!/elemental
main/main.bundle.js
// https://deno.land/x/good@1.6.1.3/value.js var typedArrayClasses = [ Uint16Array, Uint32Array, Uint8Array, Uint8ClampedArray, Int16Array, Int32Array, Int8Array, Float32Array, Float64Array, globalThis.BigInt64Array, globalThis.BigUint64Array ].filter((each) => each); var copyableClasses = /* @__P...
@!!!!!/elemental
main/main.js
// minimized xhtm from: https://github.com/dy/xhtm var e="",t="";function o(r){var p,a,l,s,c=arguments,i=this,n=0,d=[],h=0,u=[],f=0;d.root=!0;var g=function(e,o,r){void 0===o&&(o=[]);var p=0;return(e=r||e!==t?e.replace(/\ue001/g,e=>u[f++]):u[f++].slice(1,-1))?(e.replace(/\ue000/g,(t,r)=>(r&&o.push(e.slice(p,r)),p=r+1...
@!!!!!/elemental
package.json
{ "name": "@!!!!!/elemental", "version": "0.5.40", "description": "Control the elements using JS", "main": "main/main.bundle.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/jeff-hykin/elemental.git" }, ...
@!!!!!/elemental
README.md
# Try this library in the Browser Console on [Deno.land](https://deno.land/x/elementalist)! For VS Code use [this extension](https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html) to get syntax highlighting. ```js var { html } = await import("https://deno.land/x/elementalist@0.5.39/main/deno.js?cod...
@!!!!!/elemental
main/html_attributes.txt
onabort onafterprint onbeforeprint onbeforeunload onblur oncanplay oncanplaythrough onchange onclick oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onhashchange oninput oninvalid onkeydown onkeyp...
@!!!!!/javascript
main/.keep
@!!!!!/javascript
settings/.cache/.keep
@!!!!!/javascript
settings/extensions/git/hooks/fsmonitor-watchman/.keep
@!!!!!/javascript
settings/extensions/git/hooks/post-merge/.keep
@!!!!!/javascript
settings/extensions/git/hooks/post-update/.keep
@!!!!!/javascript
settings/extensions/git/hooks/pre-applypatch/.keep
@!!!!!/javascript
settings/extensions/git/hooks/pre-commit/.keep
@!!!!!/javascript
settings/extensions/git/hooks/pre-merge-commit/.keep
@!!!!!/javascript
settings/extensions/git/hooks/pre-push/.keep
@!!!!!/javascript
settings/extensions/git/hooks/pre-receive/.keep
@!!!!!/javascript
settings/extensions/git/hooks/prepare-commit-msg/.keep
@!!!!!/javascript
settings/extensions/git/hooks/update/.keep
@!!!!!/javascript
settings/requirements/.keep
@!!!!!/javascript
settings/home/.zshenv
# # if you want to customize things, # change settings/automatic_setup/00100#setup_zsh.sh instead of editing this file # # don't let zsh update itself without telling all the other packages # instead use nix to update zsh DISABLE_AUTO_UPDATE="true" DISABLE_UPDATE_PROMPT="true" # # this shouldnt ever happen (PROJE...
@!!!!!/javascript
commands/tools/add_execute_permission
#!/usr/bin/env bash # if its a file if [[ -f "$1" ]]; then chmod ugo+x "$1" &>/dev/null || sudo chmod ugo+x "$1" fi # if its a directory if [[ -f "$1" ]]; then chmod -R ugo+r "$1" &>/dev/null || sudo chmod -R ugo+x "$1" fi # fail if the file/directory doesnt exist if ! [[ -e "$1" ]]; then return 0 fi
@!!!!!/javascript
commands/tools/add_to_gitignore
#!/usr/bin/env bash function escape_grep_regex() { sed 's/[][\.|$(){}?+*^]/\\&/g' <<< "$*" } function add_to_gitignore { if [[ -z "$PROJECTR_FOLDER" ]] then PROJECTR_FOLDER="$PWD" fi local ignore_file="$PROJECTR_FOLDER/.gitignore" # check if file exists if ! [[ -f ".gitignore" ]] ...
@!!!!!/javascript
commands/tools/automatic_setup
#!/usr/bin/env bash # # find and run all the startup scripts in alphabetical order # # this loop is so stupidly complicated because of many inherent-to-shell reasons, for example: https://stackoverflow.com/questions/13726764/while-loop-subshell-dilemma-in-bash for_each_item_in="$PROJECTR_FOLDER/settings/automatic_set...
@!!!!!/javascript
settings/extensions/nodejs/commands/check_node_modules
#!/usr/bin/env bash # if not in the standard env, try to make it work anyways if [[ -z "$PROJECTR_FOLDER" ]] then # check if file exists (standard project vars) if [[ -f "$PWD/settings/project.config.sh" ]] then source "$PWD/settings/project.config.sh" fi # check if file exists (custom proj...
@!!!!!/javascript
settings/extensions/python/commands/check_pip_modules
#!/usr/bin/env bash # if not in the standard env, try to make it work anyways if [ -z "$PROJECTR_FOLDER" ] then # check if file exists (standard project vars) if [ -f "$PWD/settings/project.config.sh" ] then source "$PWD/settings/project.config.sh" fi # check if file exists (custom project ...
@!!!!!/javascript
commands/project/clean
#!/usr/bin/env bash # summary # this just removes all of the can-be deleted files # can be useful for fixing corrupted setups mkdir -p "$PROJECTR_FOLDER/settings/when_cleaning" # this loop is so stupidly complicated because of many inherent-to-shell reasons, for example: https://stackoverflow.com/questions/13726...
@!!!!!/javascript
commands/project/commands
#!/usr/bin/env bash echo "commands:" echo " project" tree "$PROJECTR_COMMANDS_FOLDER/project" -C --dirsfirst -A -F --noreport | sed 's/^/ /' | sed -E 's/(\*|@)$/ /' | sed "1d" echo node -e 'try { Object.keys(require(process.env.PROJECTR_FOLDER+"/package.json").scripts).forEach(each=>conso...
@!!!!!/javascript
commands/tools/projectr/create_wrapped_command
#!/usr/bin/env bash # # find projectr if needed # if ! [ -d "$PROJECTR_FOLDER" ] then path_to_file="" file_name="settings/projectr_core" folder_to_look_in="$PWD" while : do # check if file exists if [ -f "$folder_to_look_in/$file_name" ] then path_to_file="$fol...
@!!!!!/javascript
commands/tools/string/escape_grep_regex
#!/usr/bin/env bash sed 's/[][\.|$(){}?+*^]/\\&/g' <<< "$*"
@!!!!!/javascript
commands/tools/string/escape_shell_argument
#!/usr/bin/env bash printf '%s' "'$(printf '%s' "$1" | sed 's/'"'"'/'"'"'"'"'"'"'"'"'/g')'"
@!!!!!/javascript
commands/tools/string/indent
#!/usr/bin/env bash __temp_var__indent="$2" if [ "$#" = "1" ] then __temp_var__indent=" {1,4}" fi printf '%s' "$1" sed 's/^/'"$__temp_var__indent"'/g' unset __temp_var__indent
@!!!!!/javascript
settings/extensions/nix/commands/lib_path_for
#!/usr/bin/env bash # example usage: # $ tools nix package_path_for 'glib' # >>> /nix/store/dcb3cyba5wl6qimv6vwdpbi0kg0g1nlb-glib-2.68.2/lib output="" # check if file exists if [ -f "$__PROJECTR_NIX_PATH_EXPORT_FILE" ] then # the sed part just removes the quotes output="$(cat "$__PROJECTR_NIX_PATH_EXPO...
@!!!!!/javascript
commands/ll
#!/usr/bin/env bash # this is just a helper command for listing files # it defaults to using "exa" but falls back on "ls" otherwise # if exa is not available, start going with backup plans if ! command -v "exa" &> /dev/null then # if mac if [[ "$OSTYPE" == "darwin"* ]] then # make use of BSD versi...
@!!!!!/javascript
settings/extensions/nix/commands/long_eval
#!/usr/bin/env bash # example usage: # $ tools nix long_eval 'a = 10; b = 11; return = a + b;' # >>> 21 nix-instantiate --eval -E '(rec { '"$1"' }).return'
@!!!!!/javascript
commands/tools/manual_setup
#!/usr/bin/env bash # # find and run all the startup scripts in alphabetical order # # this loop is so stupidly complicated because of many inherent-to-shell reasons, for example: https://stackoverflow.com/questions/13726764/while-loop-subshell-dilemma-in-bash for_each_item_in="$PROJECTR_FOLDER/settings/manual_setup/...
@!!!!!/javascript
commands/tools/mixin
#!/usr/bin/env bash git_mixin () { url="$1" branch="$2" commit="$3" if [[ -z "$url" ]] then echo "What is the url to the mixin?" read url fi if [[ -z "$branch" ]] then echo "What is the branch you want to mixin? (default=master)" read bra...
@!!!!!/javascript
settings/extensions/nix/commands/package_path_for
#!/usr/bin/env bash # example usage: # $ tools nix package_path_for 'glib' # >>> /nix/store/dcb3cyba5wl6qimv6vwdpbi0kg0g1nlb-glib-2.68.2/lib output="" # check if file exists if [ -f "$__PROJECTR_NIX_PATH_EXPORT_FILE" ] then # the sed part just removes the quotes output="$(cat "$__PROJECTR_NIX_PATH_EXPO...
@!!!!!/javascript
commands/pip
#!/usr/bin/env bash # summary # this only exists so that pip for-sure corrisponds to the python command python -m pip --disable-pip-version-check "$@"
@!!!!!/javascript
settings/projectr_core
# # NOTE: I wouldn't recommend adding new variables (or anything) here # # (but the existing vars can be changed, and you can add custom logic with settings/extensions/YOUR_THING/#initialize.sh) # # find this file # path_to_file="" file_name="settings/projectr_core" folder_to_look_in="$PWD" while : do # check...
@!!!!!/javascript
commands/project/purge
#!/usr/bin/env bash # summary # this is a nuclear cleaning option # - if its not part of the git repo # - and it will take a long time (>1min) to get the data back # => this command should get rid of it # useful when you're trying to reset a project back to 0 when debugging read -p "Are you sure? (y/n)" -n...
@!!!!!/javascript
settings/extensions/nix/commands/raw_find
#!/usr/bin/env bash find -L /run /nix -iname "$@" 2>/dev/null
@!!!!!/javascript
commands/tools/remove
#!/usr/bin/env bash if [ -f "$1" ] then rm -fv "$1" else rm -rfv "$1" fi
@!!!!!/javascript
commands/tools/string/remove_doublequotes
#!/usr/bin/env bash printf '%s' "$1" | sed -E 's/^"|"$//g'
@!!!!!/javascript
commands/shell
#! /usr/bin/env nix-shell #! nix-shell -i bash -p bash_5 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/046f8835dcb9082beb75bb471c28c832e1b067b6.tar.gz # if no arguments (just starting the shell) give the welcome message export PROJECTR_ARGS="$@" # the comments above^ are special # they tell the system to proce...
@!!!!!/javascript
commands/start
#!/usr/bin/env bash # # summary # # this file is used to run commands # it loads the PROJECTR env variables first (./settings/projectr_core) # then in looks inside the commands folder for commands to run # no arguments will start the automatic environment # providing an argument (ex: clean) will ...
@!!!!!/javascript
commands/tools/storage
#!/usr/bin/env bash if [[ "$1" = "." ]] then du -sh "./"* GLOBIGNORE=".:.." du -sh "./."* else if [[ -d "$1" ]] then du -sh "$1" elif [[ -f "$1" ]] then ls -lh "$1" else echo "total remaining storage:" df -h / fi fi
@!!!!!/javascript
commands/tools/string/unindent
#!/usr/bin/env bash __temp_var__indent="$2" if [ "$#" = "1" ] then __temp_var__indent=" {1,4}" fi printf '%s' "$1" sed 's/^'"$__temp_var__indent"'//g' unset __temp_var__indent
@!!!!!/javascript
index.js
module.exports = evaler = { js: (strings, ...values)=>{ var safeNamespace = {Object, key:null, value:null, strings, values:[...values], eachValue: null, eachDefinition: null, overwrittenDefinition: undefined, evalString: ""} for (let each of strings) { safeNamespace.evalString += each ...
@!!!!!/javascript
package.json
{ "name": "@!!!!!/javascript", "version": "2.0.0", "description": "javascript > typescript", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/jeff-hykin/javascript.git" }, "keywords": [ ...
@!!!!!/javascript
poetry.lock
package = [] [metadata] lock-version = "1.1" python-versions = ">=3.7,<3.10" content-hash = "9bb64c4e388b0212ca6b8957dad730f771ae51e0d85efdda14e1fb74502c012e" [metadata.files]
@!!!!!/javascript
README.md
# How do I use it? `npm install '@!!!!!/javascript'` ``` let { js } = require("@!!!!!/javascript") let {a,b} = js` let b = 10 let a = 20 return { a, b } ` let g = ()=> { let localA = "I'm local" js`console.log(${{localA}})` } g() // works as expected ```
@!!!!!/javascript
documentation/SETUP.md
# Setup TLDR: install `nix`, run `commands/start`, and everything will be auto installed <br> ### For Windows * Get [WSL](https://youtu.be/av0UQy6g2FA?t=91) (Windows Subsystem for Linux) or [WSL2](https://www.omgubuntu.co.uk/how-to-install-wsl2-on-windows-10)<br> * If you're not familiar with WSL, I'd recommend ...
@!!!!!/javascript
settings/extensions/nix/parse_dependencies.nix
# # summary # this file exports a function that does a few basic things # 1. parses the nix.toml file and return nix package objects # 2. exports some basic information about the package dependencies to a json file # 3. returns a "main" object that has all the basic builtin or builtin-like functional...
@!!!!!/javascript
settings/extensions/nix/shell.nix
# # how to add packages? # # you can search for them here: https://search.nixos.org/packages # to find them in the commandline use: # nix-env -qP --available PACKAGE_NAME_HERE | cat # ex: # nix-env -qP --available opencv # # NOTE: some things (like setuptools) just don't show up in...
@!!!!!/javascript
resources/cacert.pem
## ## Bundle of CA Root Certificates ## ## Certificate data from Mozilla as of: Tue May 25 03:12:05 2021 GMT ## ## This is a bundle of X.509 certificates of public Certificate Authorities ## (CA). These were automatically extracted from Mozilla's root certificates ## file (certdata.txt). This file can be found in the ...
@!!!!!/javascript
settings/extensions/#standard/#initialize.sh
# # connect when_purging # mkdir -p "$PROJECTR_FOLDER/settings/.cache/" mkdir -p "$PROJECTR_FOLDER/settings/when_purging/" mkdir -p "$PROJECTR_FOLDER/settings/when_cleaning/"
@!!!!!/javascript
settings/extensions/git/#initialize.sh
#!/usr/bin/env bash # # connect when_cleaning # # unlink existing rm -f "$PROJECTR_FOLDER/settings/when_cleaning/500_git.sh" 2>/dev/null rm -rf "$PROJECTR_FOLDER/settings/when_cleaning/500_git.sh" 2>/dev/null # syslink when_cleaning ln -s "../extensions/git/when_cleaning.sh" "$PROJECTR_FOLDER/settings/when_cleaning/...
@!!!!!/javascript
settings/extensions/nix/#initialize.sh
export __PROJECTR_NIX_SETTINGS_PATH="$PROJECTR_FOLDER/settings/extensions/nix/settings.toml" export __PROJECTR_NIX_MAIN_CODE_PATH="$PROJECTR_FOLDER/settings/extensions/nix/parse_dependencies.nix" export __PROJECTR_NIX_PACKAGES_FILE_PATH="$PROJECTR_FOLDER/settings/requirements/nix.toml" export __PROJECTR_NIX_PATH_EXPORT...
@!!!!!/javascript
settings/extensions/nodejs/#initialize.sh
#!/usr/bin/env bash # # connect when_cleaning # # unlink existing rm -f "$PROJECTR_FOLDER/settings/when_cleaning/804_nodejs.sh" 2>/dev/null rm -rf "$PROJECTR_FOLDER/settings/when_cleaning/804_nodejs.sh" 2>/dev/null # syslink when_cleaning ln -s "../extensions/nodejs/when_cleaning.sh" "$PROJECTR_FOLDER/settings/when_...
@!!!!!/javascript
settings/extensions/os_mac/#initialize.sh
# # connect when_purging # # unlink existing rm -f "$PROJECTR_FOLDER/settings/when_purging/580_mac_library_caches.sh" 2>/dev/null rm -rf "$PROJECTR_FOLDER/settings/when_purging/580_mac_library_caches.sh" 2>/dev/null # syslink when_purging ln -s "../extensions/os_mac/when_purging.sh" "$PROJECTR_FOLDER/settings/when_p...
@!!!!!/javascript
settings/extensions/python/#initialize.sh
#!/usr/bin/env bash # # connect when_cleaning # # unlink existing rm -f "$PROJECTR_FOLDER/settings/when_cleaning/801_python.sh" 2>/dev/null rm -rf "$PROJECTR_FOLDER/settings/when_cleaning/801_python.sh" 2>/dev/null # syslink when_cleaning ln -s "../extensions/python/when_cleaning.sh" "$PROJECTR_FOLDER/settings/when_...
@!!!!!/javascript
settings/automatic_setup_prep/00000_setup_tools.sh
function inject_into_path { # if it is an absolute path use it directly if [[ -f "$1" ]] then local system_path="$1" # if it is the name of a command, then find the path else local system_path="$(which "$1" 2>/dev/null)" fi # make sure its a file if [[ -f "$system_path" ]...
@!!!!!/javascript
settings/automatic_setup/00009#add_path_injections.sh
# make this the lowest priority (will be overridden by commands) PATH="$PATH:$PWD/settings/.cache/path_injection"
@!!!!!/javascript
settings/automatic_setup/00100#setup_zsh.sh
# # import paths from nix # zsh_syntax_highlighting__path="$("$__PROJECTR_NIX_COMMANDS/package_path_for" zsh-syntax-highlighting)" zsh_auto_suggest__path="$("$__PROJECTR_NIX_COMMANDS/package_path_for" zsh-autosuggestions)" spaceship_prompt__path="$("$__PROJECTR_NIX_COMMANDS/package_path_for" spaceship-prompt)" oh_my_...
@!!!!!/javascript
settings/automatic_setup/00110_enable_globbing.sh
# # for zsh # setopt extended_glob &>/dev/null # # for bash # # allow ** to search directories shopt -s globstar &>/dev/null # globbing can see hidden files shopt -s dotglob &>/dev/null
@!!!!!/javascript
settings/automatic_setup/00130#ensure_commands_folder.sh
# ensure commands folder exists if ! [[ -d "$PROJECTR_COMMANDS_FOLDER" ]]; then # remove a potenial file rm -f "$PROJECTR_COMMANDS_FOLDER" # make the folder mkdir -p "$PROJECTR_COMMANDS_FOLDER" fi
@!!!!!/javascript
settings/extensions/git/hooks/pre-commit/00200_prevent_large_files.sh
#!/bin/bash # this was copy-pasted from: https://gist.github.com/benmccallum/28e4f216d9d72f5965133e6c43aaff6e # This is a pre-commit hook that ensures attempts to commit files that are # larger than $limit to your _local_ repo fail, with a helpful error message. # Maximum file size limit in bytes limit=$(( 50 * 2**2...
@!!!!!/javascript
settings/extensions/git/hooks/post-merge/00210_check_pip_modules.sh
# if PROJECTR_FOLDER is not set, then assume the current folder if [[ -z "$PROJECTR_FOLDER" ]] then "$PROJECTR_COMMANDS_FOLDER/tools/python/check_pip_modules" fi
@!!!!!/javascript
settings/automatic_setup/00400_add_system_bin.sh
# make this the lowest priority (will be overridden by commands) PATH="$PATH:/usr/bin" export PATH="$PATH/$HOME/.local/bin"
@!!!!!/javascript
settings/automatic_setup/00500_setup_ld_path.sh
# add the path to the c lib, which prevents the libstdc++.so.6 errors export LD_LIBRARY_PATH="$("$__PROJECTR_NIX_COMMANDS/lib_path_for" "cc"):$LD_LIBRARY_PATH"
@!!!!!/javascript
settings/automatic_setup_prep/01000_setting_up_env_message.sh
# if no arguments (just starting up the shell) if [ -z "$PROJECTR_ARGS" ] then echo "==============================" echo " Setting up your Environment!" echo "==============================" fi
@!!!!!/javascript
settings/automatic_setup/01000_ssl_fix.sh
# if file exists, use it __temp_var__certs_file="$PROJECTR_FOLDER/resources/cacert.pem" if [ -f "$__temp_var__certs_file" ] then export SSL_CERT_FILE="$__temp_var__certs_file" # for some reason git needs its own var export GIT_SSL_CAINFO="$SSL_CERT_FILE" fi unset __temp_var__certs_file
@!!!!!/javascript
settings/automatic_setup/01200_jeffs_git_shortcuts.sh
# version 2.0 is at least the minimum (may have a higher minimum) # sed, grep, bash/zsh required git_checkout () { # # if its a branch, then use switch # __temp_var__branches="$(git branch -a | sed -e 's/remotes\/origin\/HEAD .*//' | sed -e 's/remotes\/origin\//origin /')" printf '%s' "$__temp_va...
@!!!!!/javascript
settings/automatic_setup/01900_setup_python_venv.sh
# TMPDIR fixes a pip issue export TMPDIR="$HOME/tmp.cleanable" mkdir -p "$TMPDIR" export VIRTUAL_ENV="$PROJECTR_FOLDER/.venv" export PATH="$VIRTUAL_ENV/bin:$PATH" if ! [ -d "$VIRTUAL_ENV" ] then echo "creating virtual env for python" python -m venv "$VIRTUAL_ENV" && echo "virtual env created" fi # fix SSL issu...
@!!!!!/javascript
settings/automatic_setup/02100_check_pip_modules.sh
# check if file exists if [[ -f "$PROJECTR_COMMANDS_FOLDER/tools/python/check_pip_modules" ]] then "$PROJECTR_COMMANDS_FOLDER/tools/python/check_pip_modules" fi
@!!!!!/javascript
settings/manual_setup/02100_check_pip_modules.sh
# check if file exists if [ -f "$PROJECTR_COMMANDS_FOLDER/tools/python/check_pip_modules" ] then "$PROJECTR_COMMANDS_FOLDER/tools/python/check_pip_modules" fi
@!!!!!/javascript
settings/automatic_setup/02200_setup_pythonpath.sh
# add this project folder to the python path export PYTHONPATH="$PYTHONPATH:$PWD"
@!!!!!/javascript
settings/manual_setup/02200_setup_pythonpath.sh
# add this project folder to the python path export PYTHONPATH="$PYTHONPATH:$PWD"
@!!!!!/javascript
settings/automatic_setup/02400_python_ignores.sh
"$PROJECTR_COMMANDS_FOLDER/tools/add_to_gitignore" ".venv" # python creates a cache here on MacOS "$PROJECTR_COMMANDS_FOLDER/tools/add_to_gitignore" "settings/home/Library/Caches"
@!!!!!/javascript
settings/automatic_setup/02600_check_node_modules.sh
# check if file exists if [[ -f "$PROJECTR_COMMANDS_FOLDER/tools/nodejs/check_node_modules" ]] then "$PROJECTR_COMMANDS_FOLDER/tools/nodejs/check_node_modules" fi
@!!!!!/javascript
settings/manual_setup/02600_check_node_modules.sh
# check if file exists if [[ -f "$PROJECTR_COMMANDS_FOLDER/tools/nodejs/check_node_modules" ]] then "$PROJECTR_COMMANDS_FOLDER/tools/nodejs/check_node_modules" fi
@!!!!!/javascript
settings/automatic_setup_prep/04900_link_keychain.sh
# keychain is mac-os specific, just FYI __temp_var_path_to_keychain="$HOME/Library/Keychains/" if [[ -d "$__temp_var_path_to_keychain" ]]; then mkdir -p "$PROJECTR_HOME/Library/" # link all the keys ln -sf "$__temp_var_path_to_keychain" "$PROJECTR_HOME/Library/" fi # Make sure the user doesn't accidentally...
@!!!!!/javascript
settings/automatic_setup_prep/05100_copy_git.sh
# copy in gitconfig before changing home var cp "$HOME/.gitconfig" "$PROJECTR_HOME/.gitconfig" 2>/dev/null # make sure the user has this in their gitignore # (the config could contain passwords/keys) "$PROJECTR_COMMANDS_FOLDER/tools/add_to_gitignore" "$PROJECTR_HOME/.gitconfig"
@!!!!!/javascript
settings/automatic_setup_prep/05200_copy_npmrc.sh
# copy in .npmrc before changing home var cp "$HOME/.npmrc" "$PROJECTR_HOME/.npmrc" 2>/dev/null # make sure the user has this in their .npmrc # (it could contain passwords/keys) "$PROJECTR_COMMANDS_FOLDER/tools/add_to_gitignore" "$PROJECTR_HOME/.npmrc"
@!!!!!/javascript
settings/automatic_setup_prep/05300_copy_vsce.sh
# copy in .vsce before changing home var cp "$HOME/.vsce" "$PROJECTR_HOME/.vsce" 2>/dev/null # make sure the user has this in their .vsce # (it could contain passwords/keys) "$PROJECTR_COMMANDS_FOLDER/tools/add_to_gitignore" "$PROJECTR_HOME/.vsce"
@!!!!!/javascript
settings/automatic_setup_prep/06010_link_tealdeer.sh
# connect the tealdeer cache to prevent wasted duplicates if [[ -d "$HOME/.cache/tealdeer" ]] then if ! [[ -d "$PROJECTR_HOME/.cache/tealdeer" ]] then ln -s "$HOME/.cache/tealdeer" "$PROJECTR_HOME/.cache/tealdeer" fi fi
@!!!!!/javascript
settings/automatic_setup/07900#ensure_commands_command.sh
# create the "commands" command if it doesnt exist if ! [[ -f "$PROJECTR_COMMANDS_FOLDER/project/commands" ]]; then mkdir -p "$PROJECTR_COMMANDS_FOLDER/project" echo '#!/usr/bin/env bash echo "project commands:" tree "$PROJECTR_COMMANDS_FOLDER/project" -C --dirsfirst -A -F --noreport | sed '"'"'s/^/ ...
@!!!!!/javascript
settings/automatic_setup/08100#ensure_all_commands_executable.sh
# make sure commands are executable chmod -R ugo+x "$PROJECTR_COMMANDS_FOLDER" &>/dev/null || sudo chmod -R ugo+x "$PROJECTR_COMMANDS_FOLDER" &>/dev/null # # create aliases for all of the folders to allow recursive execution # # yes its ugly, welcome to bash programming # this loop is so stupidly complicated because...
@!!!!!/javascript
settings/manual_setup/08100#ensure_all_commands_executable.sh
# make sure commands are executable chmod -R ugo+x "$PROJECTR_COMMANDS_FOLDER" &>/dev/null || sudo chmod -R ugo+x "$PROJECTR_COMMANDS_FOLDER" &>/dev/null # # create aliases for all of the folders to allow recursive execution # # yes its ugly, welcome to bash programming # this loop is so stupidly complicated because...
@!!!!!/javascript
settings/automatic_setup/08200#add_commands_to_path.sh
# add commands to path PATH="$PROJECTR_COMMANDS_FOLDER:$PATH" # if theres a help command if [[ -f "$PROJECTR_COMMANDS_FOLDER/help" ]]; then # override the default bash "help" alias help="$PROJECTR_COMMANDS_FOLDER/help" fi
@!!!!!/javascript
settings/automatic_setup/08300_add_node_bin.sh
# connect the bin folder export PATH="$PATH:$PROJECTR_FOLDER/node_modules/.bin"
@!!!!!/javascript
settings/manual_setup/08300_add_node_bin.sh
# connect the bin folder export PATH="$PATH:$PROJECTR_FOLDER/node_modules/.bin"
@!!!!!/javascript
settings/automatic_setup_prep/08900_sudo_injection.sh
inject_into_path "sudo"
@!!!!!/javascript
settings/automatic_setup/09000_run_project_commands.sh
echo "" echo "" "$PROJECTR_COMMANDS_FOLDER/project/commands"
@!!!!!/javascript
settings/automatic_setup_prep/09100_logger_injection.sh
inject_into_path "logger"
@!!!!!/javascript
settings/automatic_setup/09200_customize_ll_colors.sh
# # "exa" is used as a better form of ls # __temp_set_exa_colors () { # # styles # local bold=1 local dim=2 local underline=4 # # colors # __temp_rgb_color () { printf "38;5;$1" } local red=31 local green=32 local yellow=33 local blue=34 local...