diff --git a/README.md b/README.md index f748272ca..d5c4ac5b0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,21 @@ # Nushell Scripts -This is a place to share Nushell scripts with each other. If you'd like to share your scripts, create a PR that adds it to the repo. +This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and [create a PR](https://github.com/nushell/nu_scripts/compare) that adds it to the repo. + +## Sections + +- [aliases](./aliases/) +- [benchmarks](./benchmarks/) +- [bin](./bin/) - scripts meant to be run as executable. i.e `nu script.nu` +- [cool-oneliners](./cool-oneliners/) +- [custom-completions](./custom-completions/) - collection of custom completions for external commands. +- [custom-menus](./custom-menus/) - collection of custom nushell menus +- [example-config](./example-config/) +- [hooks](./hooks/) +- [modules](./modules/) - This has it's dedicated [readme](./modules/) +- [nu_101](./nu_101/) - Begginer introduction to nushell concepts. +- [prompt](./prompt/) +- [themes](./themes/) ## Running Scripts diff --git a/aws/select-aws-profile.nu b/aliases/aws/select-aws-profile.nu similarity index 100% rename from aws/select-aws-profile.nu rename to aliases/aws/select-aws-profile.nu diff --git a/just/just.nu b/custom-completions/just/just.nu similarity index 100% rename from just/just.nu rename to custom-completions/just/just.nu diff --git a/formatting/README.md b/formatting/README.md deleted file mode 100644 index f9e3dd592..000000000 --- a/formatting/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Formatting scripts - -### Definition - -The scripts in this folder are used to help formatting nicely outputs of nushell. \ No newline at end of file diff --git a/direnv/config.nu b/hooks/direnv/config.nu similarity index 100% rename from direnv/config.nu rename to hooks/direnv/config.nu diff --git a/filesystem/autojump.nu b/hooks/filesystem/autojump.nu similarity index 100% rename from filesystem/autojump.nu rename to hooks/filesystem/autojump.nu diff --git a/make_release/get_coverage.nu b/make_release/get_coverage.nu old mode 100755 new mode 100644 diff --git a/modules/README.md b/modules/README.md new file mode 100644 index 000000000..551d614a5 --- /dev/null +++ b/modules/README.md @@ -0,0 +1,156 @@ +# Modules + +- [Modules](#modules) + - [after](#after) + - [api\_wrappers](#api_wrappers) + - [background\_task](#background_task) + - [base16](#base16) + - [coloring](#coloring) + - [data\_extraction](#data_extraction) + - [docker](#docker) + - [filesystem](#filesystem) + - [formats](#formats) + - [fun](#fun) + - [github](#github) + - [gitlab](#gitlab) + - [kubernetes](#kubernetes) + - [make\_release](#make_release) + - [maths](#maths) + - [network](#network) + - [nvim](#nvim) + - [progress\_bar](#progress_bar) + - [rbenv](#rbenv) + - [virtual\_environments](#virtual_environments) + - [weather](#weather) + - [webscraping](#webscraping) + + +## [after](./after) + +Run a function after the given program (by PID) + +## api_wrappers + +Demo of various API wrappers: +- [Wolfram Alpha](./api_wrappers/wolframalpha.nu) +- [AWS]() + +## background_task + +make nushell "support" background task feature. +see [README](./background_task/) + + +## base16 + +Base16 theme generator (for Linux, might work for other OS) +see [README](./base16/) + +## coloring + +These scripts are used to demonstrate the `ansi` command using `ansi` coloring. This is mainly a demo area where we have taken typical `bash` scripts and ported them to nushell scripts. It would be nice if all scripts here showed the "other" version of script and the ported nushell version. We can show "other" flavors of scripts by including them as comments in the nushell scripts or by naming the nushell script and the other script the same basename. + + +## data_extraction + +- [Ultimate Extractor](./data_extraction/ultimate_extractor.nu) - Extract any compressed archive, UE will call the proper program under the hood 😎 + +## [docker](./docker/) + +An extensive example of a wrapper for docker operations, with nushell completions. + +## filesystem + +- [cdpath](./filesystem/cdpath.nu) - ??? +- [up](./filesystem/up.nu) - Cd up `X` times + +## formats +Examples of input/output formatters: +- [from-cpuinfo](./formats/from-cpuinfo.nu) +- [from-dmidecode](./formats/from-dmidecode.nu) +- [to-ini](./formats/to-ini.nu) +- [remove-diacritics](./strings/remove-diacritics.nu) - Turns `Zażółć gęślą jaźń` into `Zazolc gesla jazn` + + +## fun + +- [spark](./fun/spark.nu) - send an array into spark and get a sparkline out: + ```console + > let v = [2, 250, 670, 890, 2, 430, 11, 908, 123, 57] + > spark $v + ▁▂▆▇▁▄▁█▁▁ + ``` +- [website-builder](./fun/website_builder.nu) - converts markdown into their equivalent html pages +- [wordle](./fun/wordle.nu) - A Terminal Wordle game. The code is based on this [gist](https://gist.github.com/huytd/6a1a6a7b34a0d0abcac00b47e3d01513), but slightly personalized. + + +## github + +- [branch-protections](./github/branch-protections/) - Do you have hundreds or thousands of GitHub repositories in your organization? Are you tired of manually managing their branch protection rules? Don't! Let nushell do it for you! see [README](./github/branch-protections/) +- [merged-branches](./github/merged-branches/) - Do your developers often forget to delete their branches after merging PRs? Are you tired of manually going into every repository and deleting them? Don't! Let nushell do it for you! see [README](./github/merged-branches/) + +## [gitlab](./gitlab/) +Search files on your GitLab server + +## [kubernetes](./kubernetes/) +??? + +## [make_release](./make_release/) +??? + +## [maths](./maths/) + +- [math_functions] - module with the following commands: + - `root` - root with a custom denominator + - `croot` - cube root + - `aroot` - root with a custom scaler and denominator + - `delta` - calculate the delta of the quadratic function + - `fact` - factorial of the given number + - `q_roots` - calculare roots of the quadratic function: ax^2+bx+x + - `isprime` - check if integer is prime + - `primelist` - list primes until given number + - `mtable` - multiplication table of n till max + - `isleap` - check if year is leap + - `gcd` - greatest common divisor between 2 integers + - `lcm` - least commoin multiple between 2 integers + - `dec2base` - decimal number to custom base representation + - `scale-minmax` - scale list to `[a,b]` interval + - `scale-minmax-table` - Scale every column of a table (separately) to `[a,b]` interval + - `math exp` - exp function + +## network +- [remoting](./network/remoting/) - This module provide convenient way to manage multiple remote clients. see [README](./network/remoting) + +- [sockets](./network/sockets/) - The `sockets` command returns a table containing information on network sockets and the processes they belong to. +It is basically a join of the tables produced by the `lsof` command, and the nushell `ps` command. + + image + + +- [ssh](./network/ssh.nu) wrapper that provides the following commands: + - `ssh` + - `scp` + - `ssh-list` + - `parse-ssh-file` + - `str max-length` + - `ensure-index` + + +## [nvim](./nvim/) +??? (not sure how universal this is) Mix of hooks, defs and alias wrapper around neovim. + +## [progress_bar](./progress_bar/) +??? (make a module out of these scripts?) - Collection of progress bars + +## [rbenv](./rbenv/) +??? (not sure how universal this is) This script provides minimal working rbenv setup. + +## [virtual_environments](./virtual_environments/) +The scripts in this directory activate virtual environments for Conda environments. + +## [weather](./weather/) +These scripts should be used to demonstrate how get your local weather and/or weather forecasts. + + +## [webscraping](./webscraping/) +Simple scripts to demonstrate how to scrape websites in nushell. Requires `query web` plugin diff --git a/after/after.nu b/modules/after/after.nu similarity index 76% rename from after/after.nu rename to modules/after/after.nu index f3e964e1c..463127b67 100644 --- a/after/after.nu +++ b/modules/after/after.nu @@ -3,7 +3,7 @@ def "nu-complete ps" [] { } # after { do something ... } -export def after [pid: string@"nu-complete ps" action ] { +export def main [pid: string@"nu-complete ps" action ] { do -i { tail --pid $pid -f /dev/null } do $action } diff --git a/background_task/README.md b/modules/background_task/README.md similarity index 100% rename from background_task/README.md rename to modules/background_task/README.md diff --git a/background_task/job.nu b/modules/background_task/job.nu similarity index 100% rename from background_task/job.nu rename to modules/background_task/job.nu diff --git a/base16/README.md b/modules/base16/README.md similarity index 100% rename from base16/README.md rename to modules/base16/README.md diff --git a/base16/alacritty_colors.mustache b/modules/base16/alacritty_colors.mustache similarity index 100% rename from base16/alacritty_colors.mustache rename to modules/base16/alacritty_colors.mustache diff --git a/base16/auto_base16.nu b/modules/base16/auto_base16.nu similarity index 100% rename from base16/auto_base16.nu rename to modules/base16/auto_base16.nu diff --git a/base16/base16.nu b/modules/base16/base16.nu similarity index 100% rename from base16/base16.nu rename to modules/base16/base16.nu diff --git a/coloring/24bit-1.nu b/modules/coloring/24bit-1.nu similarity index 100% rename from coloring/24bit-1.nu rename to modules/coloring/24bit-1.nu diff --git a/coloring/256_color_testpattern.nu b/modules/coloring/256_color_testpattern.nu similarity index 100% rename from coloring/256_color_testpattern.nu rename to modules/coloring/256_color_testpattern.nu diff --git a/coloring/README.md b/modules/coloring/README.md similarity index 100% rename from coloring/README.md rename to modules/coloring/README.md diff --git a/coloring/hl.nu b/modules/coloring/hl.nu similarity index 100% rename from coloring/hl.nu rename to modules/coloring/hl.nu diff --git a/coloring/html_colors.nu b/modules/coloring/html_colors.nu similarity index 100% rename from coloring/html_colors.nu rename to modules/coloring/html_colors.nu diff --git a/data_extraction/ultimate_extractor.nu b/modules/data_extraction/ultimate_extractor.nu similarity index 100% rename from data_extraction/ultimate_extractor.nu rename to modules/data_extraction/ultimate_extractor.nu diff --git a/docker/docker.nu b/modules/docker/docker.nu similarity index 100% rename from docker/docker.nu rename to modules/docker/docker.nu diff --git a/modules/formats/README.md b/modules/formats/README.md new file mode 100644 index 000000000..4933e10f7 --- /dev/null +++ b/modules/formats/README.md @@ -0,0 +1,5 @@ +# Formatting scripts + +### Definition + +The scripts in this folder are used to help formatting nicely inputs/outputs of nushell. \ No newline at end of file diff --git a/formats/from-cpuinfo.nu b/modules/formats/from-cpuinfo.nu similarity index 100% rename from formats/from-cpuinfo.nu rename to modules/formats/from-cpuinfo.nu diff --git a/formats/from-dmidecode.nu b/modules/formats/from-dmidecode.nu similarity index 100% rename from formats/from-dmidecode.nu rename to modules/formats/from-dmidecode.nu diff --git a/strings/remove-diacritics.nu b/modules/formats/remove-diacritics.nu similarity index 97% rename from strings/remove-diacritics.nu rename to modules/formats/remove-diacritics.nu index 926e9c4b0..d4152ae0c 100644 --- a/strings/remove-diacritics.nu +++ b/modules/formats/remove-diacritics.nu @@ -2,7 +2,7 @@ # Usage: (remove-diacritics 'Zażółć gęślą jaźń') == Zazolc gesla jazn -def remove-diacritics [ +export def main [ arg: string ] { let diacritics_map = { diff --git a/formats/to-ini.nu b/modules/formats/to-ini.nu similarity index 100% rename from formats/to-ini.nu rename to modules/formats/to-ini.nu diff --git a/formatting/number-format.nu b/modules/formats/to-number-format.nu similarity index 98% rename from formatting/number-format.nu rename to modules/formats/to-number-format.nu index cd6b74795..0a6d2b6a6 100644 --- a/formatting/number-format.nu +++ b/modules/formats/to-number-format.nu @@ -1,4 +1,4 @@ -def number-format [ +export def number-format [ num # Number to format --thousands_delim (-t) = ' ' # Thousands delimiter: number-format 1000 -t ': 1'000 --whole_part_length (-w) = 0 # Length of padding whole-part digits: number-format 123 -w 6: 123 diff --git a/fun/wordle.nu b/modules/fun/wordle.nu similarity index 100% rename from fun/wordle.nu rename to modules/fun/wordle.nu diff --git a/git/README.md b/modules/git/README.md similarity index 100% rename from git/README.md rename to modules/git/README.md diff --git a/git/git.nu b/modules/git/git.nu similarity index 100% rename from git/git.nu rename to modules/git/git.nu diff --git a/git/git_branch_cleanup.nu b/modules/git/git_branch_cleanup.nu similarity index 100% rename from git/git_branch_cleanup.nu rename to modules/git/git_branch_cleanup.nu diff --git a/kubernetes/kubernetes.nu b/modules/kubernetes/kubernetes.nu similarity index 100% rename from kubernetes/kubernetes.nu rename to modules/kubernetes/kubernetes.nu diff --git a/maths/math_functions.nu b/modules/maths/math_functions.nu similarity index 100% rename from maths/math_functions.nu rename to modules/maths/math_functions.nu diff --git a/network/remoting/README.md b/modules/network/remoting/README.md similarity index 100% rename from network/remoting/README.md rename to modules/network/remoting/README.md diff --git a/network/remoting/remoting.nu b/modules/network/remoting/remoting.nu similarity index 100% rename from network/remoting/remoting.nu rename to modules/network/remoting/remoting.nu diff --git a/network/sockets/README.md b/modules/network/sockets/README.md similarity index 100% rename from network/sockets/README.md rename to modules/network/sockets/README.md diff --git a/network/sockets/sockets.nu b/modules/network/sockets/sockets.nu similarity index 100% rename from network/sockets/sockets.nu rename to modules/network/sockets/sockets.nu diff --git a/ssh/ssh.nu b/modules/network/ssh.nu similarity index 100% rename from ssh/ssh.nu rename to modules/network/ssh.nu diff --git a/nvim/nvim.nu b/modules/nvim/nvim.nu similarity index 100% rename from nvim/nvim.nu rename to modules/nvim/nvim.nu diff --git a/prompt/README.md b/modules/prompt/README.md similarity index 100% rename from prompt/README.md rename to modules/prompt/README.md diff --git a/prompt/async_git_prompt/README.md b/modules/prompt/async_git_prompt/README.md similarity index 100% rename from prompt/async_git_prompt/README.md rename to modules/prompt/async_git_prompt/README.md diff --git a/prompt/async_git_prompt/async-git-prompt.nu b/modules/prompt/async_git_prompt/async-git-prompt.nu similarity index 100% rename from prompt/async_git_prompt/async-git-prompt.nu rename to modules/prompt/async_git_prompt/async-git-prompt.nu diff --git a/prompt/async_git_prompt/prompt.nu b/modules/prompt/async_git_prompt/prompt.nu similarity index 100% rename from prompt/async_git_prompt/prompt.nu rename to modules/prompt/async_git_prompt/prompt.nu diff --git a/prompt/full-line.nu b/modules/prompt/full-line.nu similarity index 100% rename from prompt/full-line.nu rename to modules/prompt/full-line.nu diff --git a/prompt/images/shell_space.png b/modules/prompt/images/shell_space.png similarity index 100% rename from prompt/images/shell_space.png rename to modules/prompt/images/shell_space.png diff --git a/prompt/images/starship.png b/modules/prompt/images/starship.png similarity index 100% rename from prompt/images/starship.png rename to modules/prompt/images/starship.png diff --git a/prompt/oh-my-minimal.nu b/modules/prompt/oh-my-minimal.nu similarity index 100% rename from prompt/oh-my-minimal.nu rename to modules/prompt/oh-my-minimal.nu diff --git a/prompt/oh-my-v2-docs.md b/modules/prompt/oh-my-v2-docs.md similarity index 100% rename from prompt/oh-my-v2-docs.md rename to modules/prompt/oh-my-v2-docs.md diff --git a/prompt/oh-my-v2.nu b/modules/prompt/oh-my-v2.nu similarity index 100% rename from prompt/oh-my-v2.nu rename to modules/prompt/oh-my-v2.nu diff --git a/prompt/oh-my.nu b/modules/prompt/oh-my.nu similarity index 100% rename from prompt/oh-my.nu rename to modules/prompt/oh-my.nu diff --git a/prompt/panache-git.nu b/modules/prompt/panache-git.nu similarity index 100% rename from prompt/panache-git.nu rename to modules/prompt/panache-git.nu diff --git a/prompt/shell_space.nu b/modules/prompt/shell_space.nu similarity index 100% rename from prompt/shell_space.nu rename to modules/prompt/shell_space.nu diff --git a/prompt/simple.nu b/modules/prompt/simple.nu similarity index 100% rename from prompt/simple.nu rename to modules/prompt/simple.nu diff --git a/prompt/starship.nu b/modules/prompt/starship.nu similarity index 100% rename from prompt/starship.nu rename to modules/prompt/starship.nu diff --git a/rbenv/README.md b/modules/rbenv/README.md similarity index 100% rename from rbenv/README.md rename to modules/rbenv/README.md diff --git a/rbenv/rbenv.nu b/modules/rbenv/rbenv.nu similarity index 100% rename from rbenv/rbenv.nu rename to modules/rbenv/rbenv.nu diff --git a/virtual_environments/README.md b/modules/virtual_environments/README.md similarity index 100% rename from virtual_environments/README.md rename to modules/virtual_environments/README.md diff --git a/virtual_environments/auto-venv/README.md b/modules/virtual_environments/auto-venv/README.md similarity index 100% rename from virtual_environments/auto-venv/README.md rename to modules/virtual_environments/auto-venv/README.md diff --git a/virtual_environments/auto-venv/auto-venv.nu b/modules/virtual_environments/auto-venv/auto-venv.nu similarity index 100% rename from virtual_environments/auto-venv/auto-venv.nu rename to modules/virtual_environments/auto-venv/auto-venv.nu diff --git a/virtual_environments/auto-venv/path_extensions.nu b/modules/virtual_environments/auto-venv/path_extensions.nu similarity index 100% rename from virtual_environments/auto-venv/path_extensions.nu rename to modules/virtual_environments/auto-venv/path_extensions.nu diff --git a/virtual_environments/auto-venv/venv_helpers.nu b/modules/virtual_environments/auto-venv/venv_helpers.nu similarity index 100% rename from virtual_environments/auto-venv/venv_helpers.nu rename to modules/virtual_environments/auto-venv/venv_helpers.nu diff --git a/virtual_environments/auto-venv/venvs/python-venv.nu b/modules/virtual_environments/auto-venv/venvs/python-venv.nu similarity index 100% rename from virtual_environments/auto-venv/venvs/python-venv.nu rename to modules/virtual_environments/auto-venv/venvs/python-venv.nu diff --git a/virtual_environments/conda.nu b/modules/virtual_environments/conda.nu similarity index 100% rename from virtual_environments/conda.nu rename to modules/virtual_environments/conda.nu diff --git a/virtual_environments/nu_conda/README.md b/modules/virtual_environments/nu_conda/README.md similarity index 100% rename from virtual_environments/nu_conda/README.md rename to modules/virtual_environments/nu_conda/README.md diff --git a/virtual_environments/nu_conda/nu_conda.nu b/modules/virtual_environments/nu_conda/nu_conda.nu similarity index 100% rename from virtual_environments/nu_conda/nu_conda.nu rename to modules/virtual_environments/nu_conda/nu_conda.nu diff --git a/virtual_environments/nu_msvs/README.md b/modules/virtual_environments/nu_msvs/README.md similarity index 100% rename from virtual_environments/nu_msvs/README.md rename to modules/virtual_environments/nu_msvs/README.md diff --git a/virtual_environments/nu_msvs/nu_msvs.nu b/modules/virtual_environments/nu_msvs/nu_msvs.nu similarity index 100% rename from virtual_environments/nu_msvs/nu_msvs.nu rename to modules/virtual_environments/nu_msvs/nu_msvs.nu diff --git a/weather/README.md b/modules/weather/README.md similarity index 100% rename from weather/README.md rename to modules/weather/README.md diff --git a/weather/get-weather.nu b/modules/weather/get-weather.nu similarity index 100% rename from weather/get-weather.nu rename to modules/weather/get-weather.nu diff --git a/weather/nu.nu b/modules/weather/nu.nu similarity index 100% rename from weather/nu.nu rename to modules/weather/nu.nu diff --git a/weather/timed_weather_run.nu b/modules/weather/timed_weather_run.nu similarity index 100% rename from weather/timed_weather_run.nu rename to modules/weather/timed_weather_run.nu diff --git a/weather/timed_weather_run_env.nu b/modules/weather/timed_weather_run_env.nu similarity index 100% rename from weather/timed_weather_run_env.nu rename to modules/weather/timed_weather_run_env.nu diff --git a/weather/weatherdark.nu b/modules/weather/weatherdark.nu similarity index 100% rename from weather/weatherdark.nu rename to modules/weather/weatherdark.nu diff --git a/helpers/README.md b/sourced/README.md similarity index 100% rename from helpers/README.md rename to sourced/README.md diff --git a/helpers/TODO.md b/sourced/TODO.md similarity index 100% rename from helpers/TODO.md rename to sourced/TODO.md diff --git a/api_wrappers/wolframalpha.nu b/sourced/api_wrappers/wolframalpha.nu similarity index 100% rename from api_wrappers/wolframalpha.nu rename to sourced/api_wrappers/wolframalpha.nu diff --git a/cool-oneliners/README.md b/sourced/cool-oneliners/README.md similarity index 100% rename from cool-oneliners/README.md rename to sourced/cool-oneliners/README.md diff --git a/cool-oneliners/cargo_search.nu b/sourced/cool-oneliners/cargo_search.nu similarity index 100% rename from cool-oneliners/cargo_search.nu rename to sourced/cool-oneliners/cargo_search.nu diff --git a/cool-oneliners/clear_screen_buf.nu b/sourced/cool-oneliners/clear_screen_buf.nu similarity index 100% rename from cool-oneliners/clear_screen_buf.nu rename to sourced/cool-oneliners/clear_screen_buf.nu diff --git a/cool-oneliners/dict.nu b/sourced/cool-oneliners/dict.nu similarity index 100% rename from cool-oneliners/dict.nu rename to sourced/cool-oneliners/dict.nu diff --git a/cool-oneliners/file_cat.nu b/sourced/cool-oneliners/file_cat.nu similarity index 100% rename from cool-oneliners/file_cat.nu rename to sourced/cool-oneliners/file_cat.nu diff --git a/cool-oneliners/file_convert_naming_case.nu b/sourced/cool-oneliners/file_convert_naming_case.nu similarity index 100% rename from cool-oneliners/file_convert_naming_case.nu rename to sourced/cool-oneliners/file_convert_naming_case.nu diff --git a/cool-oneliners/git_gone.nu b/sourced/cool-oneliners/git_gone.nu similarity index 100% rename from cool-oneliners/git_gone.nu rename to sourced/cool-oneliners/git_gone.nu diff --git a/cool-oneliners/parse_fish_command_history.nu b/sourced/cool-oneliners/parse_fish_command_history.nu similarity index 100% rename from cool-oneliners/parse_fish_command_history.nu rename to sourced/cool-oneliners/parse_fish_command_history.nu diff --git a/cool-oneliners/pwd-short.nu b/sourced/cool-oneliners/pwd-short.nu similarity index 100% rename from cool-oneliners/pwd-short.nu rename to sourced/cool-oneliners/pwd-short.nu diff --git a/fehbg.nu b/sourced/fehbg.nu old mode 100755 new mode 100644 similarity index 100% rename from fehbg.nu rename to sourced/fehbg.nu diff --git a/filesystem/cdpath.nu b/sourced/filesystem/cdpath.nu similarity index 100% rename from filesystem/cdpath.nu rename to sourced/filesystem/cdpath.nu diff --git a/filesystem/up.nu b/sourced/filesystem/up.nu similarity index 100% rename from filesystem/up.nu rename to sourced/filesystem/up.nu diff --git a/fun/spark.nu b/sourced/fun/spark.nu similarity index 100% rename from fun/spark.nu rename to sourced/fun/spark.nu diff --git a/fun/website_builder.nu b/sourced/fun/website_builder.nu similarity index 100% rename from fun/website_builder.nu rename to sourced/fun/website_builder.nu diff --git a/github/branch-protections/README.md b/sourced/github/branch-protections/README.md similarity index 100% rename from github/branch-protections/README.md rename to sourced/github/branch-protections/README.md diff --git a/github/branch-protections/branch-protections.nu b/sourced/github/branch-protections/branch-protections.nu similarity index 100% rename from github/branch-protections/branch-protections.nu rename to sourced/github/branch-protections/branch-protections.nu diff --git a/github/branch-protections/branch-protections.yml b/sourced/github/branch-protections/branch-protections.yml similarity index 100% rename from github/branch-protections/branch-protections.yml rename to sourced/github/branch-protections/branch-protections.yml diff --git a/github/merged-branches/README.md b/sourced/github/merged-branches/README.md similarity index 100% rename from github/merged-branches/README.md rename to sourced/github/merged-branches/README.md diff --git a/github/merged-branches/merged-branches.nu b/sourced/github/merged-branches/merged-branches.nu similarity index 100% rename from github/merged-branches/merged-branches.nu rename to sourced/github/merged-branches/merged-branches.nu diff --git a/github/merged-branches/merged-branches.yml b/sourced/github/merged-branches/merged-branches.yml similarity index 100% rename from github/merged-branches/merged-branches.yml rename to sourced/github/merged-branches/merged-branches.yml diff --git a/gitlab/README.md b/sourced/gitlab/README.md similarity index 100% rename from gitlab/README.md rename to sourced/gitlab/README.md diff --git a/gitlab/gitlab.nu b/sourced/gitlab/gitlab.nu old mode 100755 new mode 100644 similarity index 100% rename from gitlab/gitlab.nu rename to sourced/gitlab/gitlab.nu diff --git a/imaging/README.md b/sourced/imaging/README.md similarity index 100% rename from imaging/README.md rename to sourced/imaging/README.md diff --git a/imaging/divider.nu b/sourced/imaging/divider.nu similarity index 100% rename from imaging/divider.nu rename to sourced/imaging/divider.nu diff --git a/imaging/divider.sh b/sourced/imaging/divider.sh old mode 100755 new mode 100644 similarity index 100% rename from imaging/divider.sh rename to sourced/imaging/divider.sh diff --git a/imaging/imgcat.nu b/sourced/imaging/imgcat.nu similarity index 100% rename from imaging/imgcat.nu rename to sourced/imaging/imgcat.nu diff --git a/imaging/imgcat.sh b/sourced/imaging/imgcat.sh old mode 100755 new mode 100644 similarity index 100% rename from imaging/imgcat.sh rename to sourced/imaging/imgcat.sh diff --git a/misc/base64_encode.nu b/sourced/misc/base64_encode.nu similarity index 100% rename from misc/base64_encode.nu rename to sourced/misc/base64_encode.nu diff --git a/misc/cmd_stats.nu b/sourced/misc/cmd_stats.nu similarity index 100% rename from misc/cmd_stats.nu rename to sourced/misc/cmd_stats.nu diff --git a/misc/nu_defs.nu b/sourced/misc/nu_defs.nu similarity index 100% rename from misc/nu_defs.nu rename to sourced/misc/nu_defs.nu diff --git a/misc/password_generator/ReadMe.md b/sourced/misc/password_generator/ReadMe.md similarity index 100% rename from misc/password_generator/ReadMe.md rename to sourced/misc/password_generator/ReadMe.md diff --git a/misc/password_generator/genpass-dict-jp b/sourced/misc/password_generator/genpass-dict-jp similarity index 100% rename from misc/password_generator/genpass-dict-jp rename to sourced/misc/password_generator/genpass-dict-jp diff --git a/misc/password_generator/nupass.nu b/sourced/misc/password_generator/nupass.nu similarity index 100% rename from misc/password_generator/nupass.nu rename to sourced/misc/password_generator/nupass.nu diff --git a/misc/table_grouping.nu b/sourced/misc/table_grouping.nu similarity index 100% rename from misc/table_grouping.nu rename to sourced/misc/table_grouping.nu diff --git a/nu_101/README.md b/sourced/nu_101/README.md similarity index 100% rename from nu_101/README.md rename to sourced/nu_101/README.md diff --git a/nu_101/broken.nu b/sourced/nu_101/broken.nu similarity index 100% rename from nu_101/broken.nu rename to sourced/nu_101/broken.nu diff --git a/nu_101/demo.nu b/sourced/nu_101/demo.nu similarity index 100% rename from nu_101/demo.nu rename to sourced/nu_101/demo.nu diff --git a/nu_101/flag.nu b/sourced/nu_101/flag.nu similarity index 100% rename from nu_101/flag.nu rename to sourced/nu_101/flag.nu diff --git a/progress_bar/percent_meter.nu b/sourced/progress_bar/percent_meter.nu similarity index 83% rename from progress_bar/percent_meter.nu rename to sourced/progress_bar/percent_meter.nu index 10189e175..8b7b4521b 100644 --- a/progress_bar/percent_meter.nu +++ b/sourced/progress_bar/percent_meter.nu @@ -16,6 +16,8 @@ def hide_cursor [] { print $"(ansi -e '?25l')" } -hide_cursor -loading -show_cursor \ No newline at end of file +def demo_percent_meter [] { + hide_cursor + loading + show_cursor +} \ No newline at end of file diff --git a/progress_bar/progress_bar.nu b/sourced/progress_bar/progress_bar.nu similarity index 100% rename from progress_bar/progress_bar.nu rename to sourced/progress_bar/progress_bar.nu diff --git a/progress_bar/progress_bar_no_back.nu b/sourced/progress_bar/progress_bar_no_back.nu similarity index 100% rename from progress_bar/progress_bar_no_back.nu rename to sourced/progress_bar/progress_bar_no_back.nu diff --git a/helpers/run-c-cpp.nu b/sourced/run-c-cpp.nu similarity index 100% rename from helpers/run-c-cpp.nu rename to sourced/run-c-cpp.nu diff --git a/helpers/temp.nu b/sourced/temp.nu similarity index 100% rename from helpers/temp.nu rename to sourced/temp.nu diff --git a/helpers/todo.nu b/sourced/todo.nu similarity index 100% rename from helpers/todo.nu rename to sourced/todo.nu diff --git a/helpers/update-path.nu b/sourced/update-path.nu similarity index 100% rename from helpers/update-path.nu rename to sourced/update-path.nu diff --git a/helpers/update_hosts.nu b/sourced/update_hosts.nu similarity index 100% rename from helpers/update_hosts.nu rename to sourced/update_hosts.nu diff --git a/webscraping/README.md b/sourced/webscraping/README.md similarity index 100% rename from webscraping/README.md rename to sourced/webscraping/README.md diff --git a/webscraping/anagram_unscramble_scrape b/sourced/webscraping/anagram_unscramble_scrape.nu similarity index 100% rename from webscraping/anagram_unscramble_scrape rename to sourced/webscraping/anagram_unscramble_scrape.nu diff --git a/webscraping/nuschiit.nu b/sourced/webscraping/nuschiit.nu old mode 100755 new mode 100644 similarity index 100% rename from webscraping/nuschiit.nu rename to sourced/webscraping/nuschiit.nu diff --git a/webscraping/shell_stars.nu b/sourced/webscraping/shell_stars.nu similarity index 100% rename from webscraping/shell_stars.nu rename to sourced/webscraping/shell_stars.nu diff --git a/webscraping/twitter.nu b/sourced/webscraping/twitter.nu old mode 100755 new mode 100644 similarity index 100% rename from webscraping/twitter.nu rename to sourced/webscraping/twitter.nu