The general configuration of my development environment and many other general computer things.

Remove nushell configuration

-180
-98
private_Library/private_Application Support/nushell/config.nu
··· 1 - # Nushell Config File 2 - 3 - module completions { 4 - # Custom completions for external commands (those outside of Nushell) 5 - # Each completions has two parts: the form of the external command, including its flags and parameters 6 - # and a helper command that knows how to complete values for those flags and parameters 7 - # 8 - # This is a simplified version of completions for git branches and git remotes 9 - def "nu-complete git branches" [] { 10 - ^git branch | lines | each { |line| $line | str replace '[\*\+] ' '' | str trim } 11 - } 12 - 13 - def "nu-complete git remotes" [] { 14 - ^git remote | lines | each { |line| $line | str trim } 15 - } 16 - 17 - export extern "git checkout" [ 18 - branch?: string@"nu-complete git branches" # name of the branch to checkout 19 - -b: string # create and checkout a new branch 20 - -B: string # create/reset and checkout a branch 21 - -l # create reflog for new branch 22 - --guess # second guess 'git checkout <no-such-branch>' (default) 23 - --overlay # use overlay mode (default) 24 - --quiet(-q) # suppress progress reporting 25 - --recurse-submodules: string # control recursive updating of submodules 26 - --progress # force progress reporting 27 - --merge(-m) # perform a 3-way merge with the new branch 28 - --conflict: string # conflict style (merge or diff3) 29 - --detach(-d) # detach HEAD at named commit 30 - --track(-t) # set upstream info for new branch 31 - --force(-f) # force checkout (throw away local modifications) 32 - --orphan: string # new unparented branch 33 - --overwrite-ignore # update ignored files (default) 34 - --ignore-other-worktrees # do not check if another worktree is holding the given ref 35 - --ours(-2) # checkout our version for unmerged files 36 - --theirs(-3) # checkout their version for unmerged files 37 - --patch(-p) # select hunks interactively 38 - --ignore-skip-worktree-bits # do not limit pathspecs to sparse entries only 39 - --pathspec-from-file: string # read pathspec from file 40 - ] 41 - 42 - export extern "git push" [ 43 - remote?: string@"nu-complete git remotes", # the name of the remote 44 - refspec?: string@"nu-complete git branches"# the branch / refspec 45 - --verbose(-v) # be more verbose 46 - --quiet(-q) # be more quiet 47 - --repo: string # repository 48 - --all # push all refs 49 - --mirror # mirror all refs 50 - --delete(-d) # delete refs 51 - --tags # push tags (can't be used with --all or --mirror) 52 - --dry-run(-n) # dry run 53 - --porcelain # machine-readable output 54 - --force(-f) # force updates 55 - --force-with-lease: string # require old value of ref to be at this value 56 - --recurse-submodules: string # control recursive pushing of submodules 57 - --thin # use thin pack 58 - --receive-pack: string # receive pack program 59 - --exec: string # receive pack program 60 - --set-upstream(-u) # set upstream for git pull/status 61 - --progress # force progress reporting 62 - --prune # prune locally removed refs 63 - --no-verify # bypass pre-push hook 64 - --follow-tags # push missing but relevant tags 65 - --signed: string # GPG sign the push 66 - --atomic # request atomic transaction on remote side 67 - --push-option(-o): string # option to transmit 68 - --ipv4(-4) # use IPv4 addresses only 69 - --ipv6(-6) # use IPv6 addresses only 70 - ] 71 - } 72 - 73 - # Get just the extern definitions without the custom completion commands 74 - use completions * 75 - 76 - 77 - # Custom settings 78 - let-env config = { 79 - rm_always_trash: true, 80 - edit_mode: vi, 81 - max_history_size: 100000, 82 - footer_mode: auto, 83 - history_file_format: "sqlite", 84 - } 85 - 86 - ### Setup aliases 87 - alias edit = ^($env.EDITOR) 88 - alias start = ^open 89 - alias less = bat 90 - alias set-light-theme = kitty +kitten themes Breakers 91 - alias set-dark-theme = kitty +kitten themes Mariana 92 - alias brew-backup = brew bundle dump --global --no-lock --cask --mas --tap --force 93 - alias brew-cleanup = brew bundle cleanup --global --no-lock --force --zap 94 - alias brew-restore = brew bundle install --global --no-lock 95 - alias packer-sync = nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync" 96 - 97 - # Load autojump plugin "zoxide" 98 - source ~/.cache/zoxide/zoxide.nu
-70
private_Library/private_Application Support/nushell/env.nu
··· 1 - # Nushell Environment Config File 2 - 3 - # Load standardised prompt "starship" 4 - # TEMP: Custom vi prompt indicators 5 - let-env PROMPT_INDICATOR_VI_INSERT = "" 6 - let-env PROMPT_INDICATOR_VI_NORMAL = "" 7 - source ~/.cache/starship/init.nu 8 - 9 - # Specifies how environment variables are: 10 - # - converted from a string to a value on Nushell startup (from_string) 11 - # - converted from a value back to a string when running external commands (to_string) 12 - # Note: The conversions happen *after* config.nu is loaded 13 - let-env ENV_CONVERSIONS = { 14 - "PATH": { 15 - from_string: { |s| $s | split row (char esep) } 16 - to_string: { |v| $v | str collect (char esep) } 17 - } 18 - "Path": { 19 - from_string: { |s| $s | split row (char esep) } 20 - to_string: { |v| $v | str collect (char esep) } 21 - } 22 - } 23 - 24 - # Directories to search for scripts when calling source or use 25 - # 26 - # By default, <nushell-config-dir>/scripts is added 27 - let-env NU_LIB_DIRS = [ 28 - ($nu.config-path | path dirname | path join 'scripts') 29 - ] 30 - 31 - # Directories to search for plugin binaries when calling register 32 - # 33 - # By default, <nushell-config-dir>/plugins is added 34 - let-env NU_PLUGIN_DIRS = [ 35 - ($nu.config-path | path dirname | path join 'plugins') 36 - ] 37 - 38 - # To add entries to PATH (on Windows you might use Path), you can use the following pattern: 39 - # From MacOS helper (/usr/libexec/path_helper) 40 - let-env PATH = ($env.PATH | append "/Library/TeX/texbin") 41 - let-env PATH = ($env.PATH | append "/Library/Apple/usr/bin") 42 - let-env PATH = ($env.PATH | append "/opt/homebrew/bin") 43 - let-env PATH = ($env.PATH | append "/opt/homebrew/sbin") 44 - let-env PATH = ($env.PATH | append "/usr/local/bin") 45 - # Optional Homebrew packages 46 - let-env PATH = ($env.PATH | prepend $"(brew --prefix | str trim)/opt/bison/bin") 47 - let-env PATH = ($env.PATH | prepend $"(brew --prefix | str trim)/opt/flex/bin") 48 - let-env PATH = ($env.PATH | prepend $"(brew --prefix | str trim)/opt/llvm/bin") 49 - let-env PATH = ($env.PATH | prepend $"(brew --prefix | str trim)/opt/openjdk/bin") 50 - # Other package managers 51 - let-env PATH = ($env.PATH | prepend $"($env.HOME)/.local/bin") 52 - let-env PATH = ($env.PATH | prepend $"($env.HOME)/.cargo/bin") 53 - 54 - # --- user custom --- 55 - # Set default editor 56 - let-env EDITOR = "nvim" 57 - # Alias for Monash compute cluster 58 - let-env BIGBAD = "compute.optimisation-2020.cloud.edu.au" 59 - # CMake settings 60 - let-env CMAKE_EXPORT_COMPILE_COMMANDS = "1" # output compile-commands.json for clangd 61 - let-env CMAKE_GENERATOR = "Sublime Text 2 - Ninja" # use Ninja generator by default 62 - # Default find command for FZF 63 - let-env FZF_DEFAULT_COMMAND = "fd --type f" 64 - # Homebrew shell setup (brew shellenv) 65 - let-env HOMEBREW_PREFIX = "/opt/homebrew" 66 - let-env HOMEBREW_CELLAR = "/opt/homebrew/Cellar" 67 - let-env HOMEBREW_REPOSITORY = "/opt/homebrew" 68 - let-env INFOPATH = "/opt/homebrew/share/info" 69 - # Set MANPATH 70 - let-env MANPATH = "/usr/share/man:/usr/local/share/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/opt/homebrew/share/man"
-12
run_nushell_generation.nu
··· 1 - #!/usr/bin/env nu 2 - 3 - # Generate zoxide configuration 4 - if (which zoxide | empty?) == false { 5 - mkdir ~/.cache/zoxide/ 6 - zoxide init nushell --hook prompt | save ~/.cache/zoxide/zoxide.nu 7 - } 8 - 9 - if (which starship | empty?) == false { 10 - mkdir ~/.cache/starship/ 11 - starship init nu | save ~/.cache/starship/init.nu 12 - }