From 3395975c3cb0346bb422bbdfd66274aae49cfe68 Mon Sep 17 00:00:00 2001 From: Melissa Dumont Date: Sun, 25 May 2025 19:34:40 -0400 Subject: [PATCH] startup config --- .config/autostart/Flameshot.desktop | 7 + .config/autostart/pasystray.desktop | 11 + .config/autostart/startup.sh.desktop | 6 - .config/i3/config | 14 +- .xinitrc##c.desktop | 6 +- .zfunc/_rustup | 1725 ++++++++++++++++++++++++++ .zshrc | 6 +- 7 files changed, 1753 insertions(+), 22 deletions(-) create mode 100644 .config/autostart/Flameshot.desktop create mode 100644 .config/autostart/pasystray.desktop delete mode 100644 .config/autostart/startup.sh.desktop create mode 100644 .zfunc/_rustup diff --git a/.config/autostart/Flameshot.desktop b/.config/autostart/Flameshot.desktop new file mode 100644 index 0000000..ffc069d --- /dev/null +++ b/.config/autostart/Flameshot.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=flameshot +Icon=flameshot +Exec=flameshot +Terminal=false +Type=Application +X-GNOME-Autostart-enabled=true diff --git a/.config/autostart/pasystray.desktop b/.config/autostart/pasystray.desktop new file mode 100644 index 0000000..c48e124 --- /dev/null +++ b/.config/autostart/pasystray.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=PulseAudio System Tray +GenericName= +Comment=An Applet for PulseAudio +Exec=pasystray +Icon=pasystray +StartupNotify=true +Type=Application +Categories=AudioVideo;Audio; +Keywords=pulseaudio;tray;system tray;applet;volume; diff --git a/.config/autostart/startup.sh.desktop b/.config/autostart/startup.sh.desktop deleted file mode 100644 index 43d653a..0000000 --- a/.config/autostart/startup.sh.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Exec=/home/melissa/scripts/startup.sh -Icon=application-x-shellscript -Name=startup.sh -Type=Application -X-KDE-AutostartScript=true diff --git a/.config/i3/config b/.config/i3/config index b07517d..383b0ed 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -37,7 +37,7 @@ exec --no-startup-id dex --autostart --environment i3 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock -l i3lock-fancy -p & +exec --no-startup-id xss-lock -l i3lock-fancy -p bindsym $mod+Shift+L exec loginctl lock-session @@ -60,7 +60,7 @@ floating_modifier $mod # tiling_drag modifier titlebar # start a terminal -bindsym $mod+Return exec rio +bindsym $mod+Return exec alacritty # kill focused window bindsym $mod+Shift+q kill @@ -196,13 +196,6 @@ mode "resize" { bindsym $mod+r mode "resize" -# polybar -exec monitor-affinity --config-file ~/.config/monitor-affinity/config.toml - -# disable hardware -# TODO: make a script that sets DPMS based on whether its a laptop or a desktop -exec xautolock -time 120 -locker i3lock-fancy - # >>> Plasma Integration <<< # Try to kill the wallpaper set by Plasma (it takes up the entire workspace and hides everything) @@ -254,3 +247,6 @@ exec xautolock -time 120 -locker i3lock-fancy for_window [title="Desktop — Plasma"] kill + +# bar +exec ~/.cargo/bin/monitor-affinity --config-file ~/.config/monitor-affinity/config.toml diff --git a/.xinitrc##c.desktop b/.xinitrc##c.desktop index 4d2caf3..acd241e 100644 --- a/.xinitrc##c.desktop +++ b/.xinitrc##c.desktop @@ -1,3 +1,3 @@ -#!/bin/bash -xset s 60 -xset dpms 0 0 90 +#!/bin/bash +xset s 3600 +xset dpms 0 0 5400 diff --git a/.zfunc/_rustup b/.zfunc/_rustup new file mode 100644 index 0000000..6c8b379 --- /dev/null +++ b/.zfunc/_rustup @@ -0,0 +1,1725 @@ +#compdef rustup + +autoload -U is-at-least + +_rustup() { + typeset -A opt_args + typeset -a _arguments_options + local ret=1 + + if is-at-least 5.2; then + _arguments_options=(-s -S -C) + else + _arguments_options=(-s -C) + fi + + local context curcontext="$curcontext" state line + _arguments "${_arguments_options[@]}" : \ +'(-q --quiet)-v[Set log level to '\''DEBUG'\'' if '\''RUSTUP_LOG'\'' is unset]' \ +'(-q --quiet)--verbose[Set log level to '\''DEBUG'\'' if '\''RUSTUP_LOG'\'' is unset]' \ +'(-v --verbose)-q[Disable progress output, set log level to '\''WARN'\'' if '\''RUSTUP_LOG'\'' is unset]' \ +'(-v --verbose)--quiet[Disable progress output, set log level to '\''WARN'\'' if '\''RUSTUP_LOG'\'' is unset]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ +'::+toolchain -- Release channel (e.g. +stable) or custom toolchain to set override:_default' \ +":: :_rustup_commands" \ +"*::: :->rustup" \ +&& ret=0 + case $state in + (rustup) + words=($line[2] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-command-$line[2]:" + case $line[2] in + (install) +_arguments "${_arguments_options[@]}" : \ +'--profile=[]:PROFILE:(minimal default complete)' \ +'*-c+[Comma-separated list of components to be added on installation]:COMPONENT:_default' \ +'*--component=[Comma-separated list of components to be added on installation]:COMPONENT:_default' \ +'*-t+[Comma-separated list of targets to be added on installation]:TARGET:_default' \ +'*--target=[Comma-separated list of targets to be added on installation]:TARGET:_default' \ +'--no-self-update[Don'\''t perform self update when running the \`rustup toolchain install\` command]' \ +'--force[Force an update, even if some components are missing]' \ +'--allow-downgrade[Allow rustup to downgrade the toolchain to satisfy your component choice]' \ +'--force-non-host[Install toolchains that require an emulator. See https\://github.com/rust-lang/rustup/wiki/Non-host-toolchains]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(dump-testament) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(toolchain) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__toolchain_commands" \ +"*::: :->toolchain" \ +&& ret=0 + + case $state in + (toolchain) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-toolchain-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +'-v[Enable verbose output with toolchain information]' \ +'--verbose[Enable verbose output with toolchain information]' \ +'(-v --verbose)-q[Force the output to be a single column]' \ +'(-v --verbose)--quiet[Force the output to be a single column]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +'--profile=[]:PROFILE:(minimal default complete)' \ +'*-c+[Comma-separated list of components to be added on installation]:COMPONENT:_default' \ +'*--component=[Comma-separated list of components to be added on installation]:COMPONENT:_default' \ +'*-t+[Comma-separated list of targets to be added on installation]:TARGET:_default' \ +'*--target=[Comma-separated list of targets to be added on installation]:TARGET:_default' \ +'--no-self-update[Don'\''t perform self update when running the \`rustup toolchain install\` command]' \ +'--force[Force an update, even if some components are missing]' \ +'--allow-downgrade[Allow rustup to downgrade the toolchain to satisfy your component choice]' \ +'--force-non-host[Install toolchains that require an emulator. See https\://github.com/rust-lang/rustup/wiki/Non-host-toolchains]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(link) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +':toolchain -- Custom toolchain name:_default' \ +':path -- Path to the directory:_files' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__toolchain__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-toolchain-help-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(link) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(default) +_arguments "${_arguments_options[@]}" : \ +'--force-non-host[Install toolchains that require an emulator. See https\://github.com/rust-lang/rustup/wiki/Non-host-toolchains]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'::toolchain -- '\''none'\'', a toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(show) +_arguments "${_arguments_options[@]}" : \ +'-v[Enable verbose output with rustc information for all installed toolchains]' \ +'--verbose[Enable verbose output with rustc information for all installed toolchains]' \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__show_commands" \ +"*::: :->show" \ +&& ret=0 + + case $state in + (show) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-show-command-$line[1]:" + case $line[1] in + (active-toolchain) +_arguments "${_arguments_options[@]}" : \ +'-v[Enable verbose output with rustc information]' \ +'--verbose[Enable verbose output with rustc information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(home) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__show__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-show-help-command-$line[1]:" + case $line[1] in + (active-toolchain) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(home) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(update) +_arguments "${_arguments_options[@]}" : \ +'--no-self-update[Don'\''t perform self update when running the \`rustup update\` command]' \ +'--force[Force an update, even if some components are missing]' \ +'--force-non-host[Install toolchains that require an emulator. See https\://github.com/rust-lang/rustup/wiki/Non-host-toolchains]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(check) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(target) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__target_commands" \ +"*::: :->target" \ +&& ret=0 + + case $state in + (target) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-target-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'--installed[List only installed targets]' \ +'-q[Force the output to be a single column]' \ +'--quiet[Force the output to be a single column]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::target -- List of targets to install; "all" installs all available targets:_default' \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::target -- List of targets to uninstall:_default' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__target__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-target-help-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(component) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__component_commands" \ +"*::: :->component" \ +&& ret=0 + + case $state in + (component) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-component-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'--installed[List only installed components]' \ +'-q[Force the output to be a single column]' \ +'--quiet[Force the output to be a single column]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'--target=[]:TARGET:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::component:_default' \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'--target=[]:TARGET:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +'*::component:_default' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__component__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-component-help-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(override) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__override_commands" \ +"*::: :->override" \ +&& ret=0 + + case $state in + (override) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-override-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(set) +_arguments "${_arguments_options[@]}" : \ +'--path=[Path to the directory]:PATH:_files' \ +'-h[Print help]' \ +'--help[Print help]' \ +':toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name. For more information see `rustup help toolchain`:_default' \ +&& ret=0 +;; +(unset) +_arguments "${_arguments_options[@]}" : \ +'--path=[Path to the directory]:PATH:_files' \ +'--nonexistent[Remove override toolchain for all nonexistent directories]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__override__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-override-help-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(set) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(unset) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(run) +_arguments "${_arguments_options[@]}" : \ +'--install[Install the requested toolchain if needed]' \ +'-h[Print help]' \ +'--help[Print help]' \ +':toolchain -- Toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name, or an absolute path. For more information see `rustup help toolchain`:_default' \ +'*::command:_default' \ +&& ret=0 +;; +(which) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', '\''1.8.0'\'', or a custom toolchain name. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +':command:_default' \ +&& ret=0 +;; +(doc) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'--path[Only print the path to the documentation]' \ +'--alloc[The Rust core allocation and collections library]' \ +'--book[The Rust Programming Language book]' \ +'--cargo[The Cargo Book]' \ +'--clippy[The Clippy Documentation]' \ +'--core[The Rust Core Library]' \ +'--edition-guide[The Rust Edition Guide]' \ +'--embedded-book[The Embedded Rust Book]' \ +'--error-codes[The Rust Error Codes Index]' \ +'--nomicon[The Dark Arts of Advanced and Unsafe Rust Programming]' \ +'--proc_macro[A support library for macro authors when defining new macros]' \ +'--reference[The Rust Reference]' \ +'--rust-by-example[A collection of runnable examples that illustrate various Rust concepts and standard libraries]' \ +'--rustc[The compiler for the Rust programming language]' \ +'--rustdoc[Documentation generator for Rust projects]' \ +'--std[Standard library API documentation]' \ +'--style-guide[The Rust Style Guide]' \ +'--test[Support code for rustc'\''s built in unit-test and micro-benchmarking framework]' \ +'--unstable-book[The Unstable Book]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'::topic -- Topic such as '\''core'\'', '\''fn'\'', '\''usize'\'', '\''eprintln!'\'', '\''core\:\:arch'\'', '\''alloc\:\:format!'\'', '\''std\:\:fs'\'', '\''std\:\:fs\:\:read_dir'\'', '\''std\:\:io\:\:Bytes'\'', '\''std\:\:iter\:\:Sum'\'', '\''std\:\:io\:\:error\:\:Result'\'' etc...:_default' \ +&& ret=0 +;; +(man) +_arguments "${_arguments_options[@]}" : \ +'--toolchain=[Toolchain name, such as '\''stable'\'', '\''nightly'\'', or '\''1.8.0'\''. For more information see \`rustup help toolchain\`]:TOOLCHAIN:_default' \ +'-h[Print help]' \ +'--help[Print help]' \ +':command:_default' \ +&& ret=0 +;; +(self) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__self_commands" \ +"*::: :->self" \ +&& ret=0 + + case $state in + (self) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-self-command-$line[1]:" + case $line[1] in + (update) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'-y[]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(upgrade-data) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__self__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-self-help-command-$line[1]:" + case $line[1] in + (update) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(upgrade-data) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(set) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_rustup__set_commands" \ +"*::: :->set" \ +&& ret=0 + + case $state in + (set) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-set-command-$line[1]:" + case $line[1] in + (default-host) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +':host_triple:_default' \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +'::profile_name:(minimal default complete)' \ +&& ret=0 +;; +(auto-self-update) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +'::auto_self_update_mode:(enable disable check-only)' \ +&& ret=0 +;; +(auto-install) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +'::auto_install_mode:(enable disable)' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__set__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-set-help-command-$line[1]:" + case $line[1] in + (default-host) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(auto-self-update) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(auto-install) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +':shell:(bash elvish fish powershell zsh)' \ +'::command:(rustup cargo)' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-command-$line[1]:" + case $line[1] in + (install) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(dump-testament) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(toolchain) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__toolchain_commands" \ +"*::: :->toolchain" \ +&& ret=0 + + case $state in + (toolchain) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-toolchain-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(link) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(default) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(show) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__show_commands" \ +"*::: :->show" \ +&& ret=0 + + case $state in + (show) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-show-command-$line[1]:" + case $line[1] in + (active-toolchain) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(home) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(update) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(check) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(target) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__target_commands" \ +"*::: :->target" \ +&& ret=0 + + case $state in + (target) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-target-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(component) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__component_commands" \ +"*::: :->component" \ +&& ret=0 + + case $state in + (component) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-component-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(override) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__override_commands" \ +"*::: :->override" \ +&& ret=0 + + case $state in + (override) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-override-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(set) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(unset) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(run) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(which) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(doc) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(man) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(self) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__self_commands" \ +"*::: :->self" \ +&& ret=0 + + case $state in + (self) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-self-command-$line[1]:" + case $line[1] in + (update) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(upgrade-data) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(set) +_arguments "${_arguments_options[@]}" : \ +":: :_rustup__help__set_commands" \ +"*::: :->set" \ +&& ret=0 + + case $state in + (set) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:rustup-help-set-command-$line[1]:" + case $line[1] in + (default-host) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(profile) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(auto-self-update) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(auto-install) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +} + +(( $+functions[_rustup_commands] )) || +_rustup_commands() { + local commands; commands=( +'install:Install or update the given toolchains, or by default the active toolchain' \ +'uninstall:Uninstall the given toolchains' \ +'dump-testament:Dump information about the build' \ +'toolchain:Install, uninstall, or list toolchains' \ +'default:Set the default toolchain' \ +'show:Show the active and installed toolchains or profiles' \ +'update:Update Rust toolchains and rustup' \ +'check:Check for updates to Rust toolchains and rustup' \ +'target:Modify a toolchain'\''s supported targets' \ +'component:Modify a toolchain'\''s installed components' \ +'override:Modify toolchain overrides for directories' \ +'run:Run a command with an environment configured for a given toolchain' \ +'which:Display which binary will be run for a given command' \ +'doc:Open the documentation for the current toolchain' \ +'man:View the man page for a given command' \ +'self:Modify the rustup installation' \ +'set:Alter rustup settings' \ +'completions:Generate tab-completion scripts for your shell' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup commands' commands "$@" +} +(( $+functions[_rustup__check_commands] )) || +_rustup__check_commands() { + local commands; commands=() + _describe -t commands 'rustup check commands' commands "$@" +} +(( $+functions[_rustup__completions_commands] )) || +_rustup__completions_commands() { + local commands; commands=() + _describe -t commands 'rustup completions commands' commands "$@" +} +(( $+functions[_rustup__component_commands] )) || +_rustup__component_commands() { + local commands; commands=( +'list:List installed and available components' \ +'add:Add a component to a Rust toolchain' \ +'remove:Remove a component from a Rust toolchain' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup component commands' commands "$@" +} +(( $+functions[_rustup__component__add_commands] )) || +_rustup__component__add_commands() { + local commands; commands=() + _describe -t commands 'rustup component add commands' commands "$@" +} +(( $+functions[_rustup__component__help_commands] )) || +_rustup__component__help_commands() { + local commands; commands=( +'list:List installed and available components' \ +'add:Add a component to a Rust toolchain' \ +'remove:Remove a component from a Rust toolchain' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup component help commands' commands "$@" +} +(( $+functions[_rustup__component__help__add_commands] )) || +_rustup__component__help__add_commands() { + local commands; commands=() + _describe -t commands 'rustup component help add commands' commands "$@" +} +(( $+functions[_rustup__component__help__help_commands] )) || +_rustup__component__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup component help help commands' commands "$@" +} +(( $+functions[_rustup__component__help__list_commands] )) || +_rustup__component__help__list_commands() { + local commands; commands=() + _describe -t commands 'rustup component help list commands' commands "$@" +} +(( $+functions[_rustup__component__help__remove_commands] )) || +_rustup__component__help__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup component help remove commands' commands "$@" +} +(( $+functions[_rustup__component__list_commands] )) || +_rustup__component__list_commands() { + local commands; commands=() + _describe -t commands 'rustup component list commands' commands "$@" +} +(( $+functions[_rustup__component__remove_commands] )) || +_rustup__component__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup component remove commands' commands "$@" +} +(( $+functions[_rustup__default_commands] )) || +_rustup__default_commands() { + local commands; commands=() + _describe -t commands 'rustup default commands' commands "$@" +} +(( $+functions[_rustup__doc_commands] )) || +_rustup__doc_commands() { + local commands; commands=() + _describe -t commands 'rustup doc commands' commands "$@" +} +(( $+functions[_rustup__dump-testament_commands] )) || +_rustup__dump-testament_commands() { + local commands; commands=() + _describe -t commands 'rustup dump-testament commands' commands "$@" +} +(( $+functions[_rustup__help_commands] )) || +_rustup__help_commands() { + local commands; commands=( +'install:Install or update the given toolchains, or by default the active toolchain' \ +'uninstall:Uninstall the given toolchains' \ +'dump-testament:Dump information about the build' \ +'toolchain:Install, uninstall, or list toolchains' \ +'default:Set the default toolchain' \ +'show:Show the active and installed toolchains or profiles' \ +'update:Update Rust toolchains and rustup' \ +'check:Check for updates to Rust toolchains and rustup' \ +'target:Modify a toolchain'\''s supported targets' \ +'component:Modify a toolchain'\''s installed components' \ +'override:Modify toolchain overrides for directories' \ +'run:Run a command with an environment configured for a given toolchain' \ +'which:Display which binary will be run for a given command' \ +'doc:Open the documentation for the current toolchain' \ +'man:View the man page for a given command' \ +'self:Modify the rustup installation' \ +'set:Alter rustup settings' \ +'completions:Generate tab-completion scripts for your shell' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup help commands' commands "$@" +} +(( $+functions[_rustup__help__check_commands] )) || +_rustup__help__check_commands() { + local commands; commands=() + _describe -t commands 'rustup help check commands' commands "$@" +} +(( $+functions[_rustup__help__completions_commands] )) || +_rustup__help__completions_commands() { + local commands; commands=() + _describe -t commands 'rustup help completions commands' commands "$@" +} +(( $+functions[_rustup__help__component_commands] )) || +_rustup__help__component_commands() { + local commands; commands=( +'list:List installed and available components' \ +'add:Add a component to a Rust toolchain' \ +'remove:Remove a component from a Rust toolchain' \ + ) + _describe -t commands 'rustup help component commands' commands "$@" +} +(( $+functions[_rustup__help__component__add_commands] )) || +_rustup__help__component__add_commands() { + local commands; commands=() + _describe -t commands 'rustup help component add commands' commands "$@" +} +(( $+functions[_rustup__help__component__list_commands] )) || +_rustup__help__component__list_commands() { + local commands; commands=() + _describe -t commands 'rustup help component list commands' commands "$@" +} +(( $+functions[_rustup__help__component__remove_commands] )) || +_rustup__help__component__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup help component remove commands' commands "$@" +} +(( $+functions[_rustup__help__default_commands] )) || +_rustup__help__default_commands() { + local commands; commands=() + _describe -t commands 'rustup help default commands' commands "$@" +} +(( $+functions[_rustup__help__doc_commands] )) || +_rustup__help__doc_commands() { + local commands; commands=() + _describe -t commands 'rustup help doc commands' commands "$@" +} +(( $+functions[_rustup__help__dump-testament_commands] )) || +_rustup__help__dump-testament_commands() { + local commands; commands=() + _describe -t commands 'rustup help dump-testament commands' commands "$@" +} +(( $+functions[_rustup__help__help_commands] )) || +_rustup__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup help help commands' commands "$@" +} +(( $+functions[_rustup__help__install_commands] )) || +_rustup__help__install_commands() { + local commands; commands=() + _describe -t commands 'rustup help install commands' commands "$@" +} +(( $+functions[_rustup__help__man_commands] )) || +_rustup__help__man_commands() { + local commands; commands=() + _describe -t commands 'rustup help man commands' commands "$@" +} +(( $+functions[_rustup__help__override_commands] )) || +_rustup__help__override_commands() { + local commands; commands=( +'list:List directory toolchain overrides' \ +'set:Set the override toolchain for a directory' \ +'unset:Remove the override toolchain for a directory' \ + ) + _describe -t commands 'rustup help override commands' commands "$@" +} +(( $+functions[_rustup__help__override__list_commands] )) || +_rustup__help__override__list_commands() { + local commands; commands=() + _describe -t commands 'rustup help override list commands' commands "$@" +} +(( $+functions[_rustup__help__override__set_commands] )) || +_rustup__help__override__set_commands() { + local commands; commands=() + _describe -t commands 'rustup help override set commands' commands "$@" +} +(( $+functions[_rustup__help__override__unset_commands] )) || +_rustup__help__override__unset_commands() { + local commands; commands=() + _describe -t commands 'rustup help override unset commands' commands "$@" +} +(( $+functions[_rustup__help__run_commands] )) || +_rustup__help__run_commands() { + local commands; commands=() + _describe -t commands 'rustup help run commands' commands "$@" +} +(( $+functions[_rustup__help__self_commands] )) || +_rustup__help__self_commands() { + local commands; commands=( +'update:Download and install updates to rustup' \ +'uninstall:Uninstall rustup' \ +'upgrade-data:Upgrade the internal data format' \ + ) + _describe -t commands 'rustup help self commands' commands "$@" +} +(( $+functions[_rustup__help__self__uninstall_commands] )) || +_rustup__help__self__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup help self uninstall commands' commands "$@" +} +(( $+functions[_rustup__help__self__update_commands] )) || +_rustup__help__self__update_commands() { + local commands; commands=() + _describe -t commands 'rustup help self update commands' commands "$@" +} +(( $+functions[_rustup__help__self__upgrade-data_commands] )) || +_rustup__help__self__upgrade-data_commands() { + local commands; commands=() + _describe -t commands 'rustup help self upgrade-data commands' commands "$@" +} +(( $+functions[_rustup__help__set_commands] )) || +_rustup__help__set_commands() { + local commands; commands=( +'default-host:The triple used to identify toolchains when not specified' \ +'profile:The default components installed with a toolchain' \ +'auto-self-update:The rustup auto self update mode' \ +'auto-install:The auto toolchain install mode' \ + ) + _describe -t commands 'rustup help set commands' commands "$@" +} +(( $+functions[_rustup__help__set__auto-install_commands] )) || +_rustup__help__set__auto-install_commands() { + local commands; commands=() + _describe -t commands 'rustup help set auto-install commands' commands "$@" +} +(( $+functions[_rustup__help__set__auto-self-update_commands] )) || +_rustup__help__set__auto-self-update_commands() { + local commands; commands=() + _describe -t commands 'rustup help set auto-self-update commands' commands "$@" +} +(( $+functions[_rustup__help__set__default-host_commands] )) || +_rustup__help__set__default-host_commands() { + local commands; commands=() + _describe -t commands 'rustup help set default-host commands' commands "$@" +} +(( $+functions[_rustup__help__set__profile_commands] )) || +_rustup__help__set__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup help set profile commands' commands "$@" +} +(( $+functions[_rustup__help__show_commands] )) || +_rustup__help__show_commands() { + local commands; commands=( +'active-toolchain:Show the active toolchain' \ +'home:Display the computed value of RUSTUP_HOME' \ +'profile:Show the default profile used for the \`rustup install\` command' \ + ) + _describe -t commands 'rustup help show commands' commands "$@" +} +(( $+functions[_rustup__help__show__active-toolchain_commands] )) || +_rustup__help__show__active-toolchain_commands() { + local commands; commands=() + _describe -t commands 'rustup help show active-toolchain commands' commands "$@" +} +(( $+functions[_rustup__help__show__home_commands] )) || +_rustup__help__show__home_commands() { + local commands; commands=() + _describe -t commands 'rustup help show home commands' commands "$@" +} +(( $+functions[_rustup__help__show__profile_commands] )) || +_rustup__help__show__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup help show profile commands' commands "$@" +} +(( $+functions[_rustup__help__target_commands] )) || +_rustup__help__target_commands() { + local commands; commands=( +'list:List installed and available targets' \ +'add:Add a target to a Rust toolchain' \ +'remove:Remove a target from a Rust toolchain' \ + ) + _describe -t commands 'rustup help target commands' commands "$@" +} +(( $+functions[_rustup__help__target__add_commands] )) || +_rustup__help__target__add_commands() { + local commands; commands=() + _describe -t commands 'rustup help target add commands' commands "$@" +} +(( $+functions[_rustup__help__target__list_commands] )) || +_rustup__help__target__list_commands() { + local commands; commands=() + _describe -t commands 'rustup help target list commands' commands "$@" +} +(( $+functions[_rustup__help__target__remove_commands] )) || +_rustup__help__target__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup help target remove commands' commands "$@" +} +(( $+functions[_rustup__help__toolchain_commands] )) || +_rustup__help__toolchain_commands() { + local commands; commands=( +'list:List installed toolchains' \ +'install:Install or update the given toolchains, or by default the active toolchain' \ +'uninstall:Uninstall the given toolchains' \ +'link:Create a custom toolchain by symlinking to a directory' \ + ) + _describe -t commands 'rustup help toolchain commands' commands "$@" +} +(( $+functions[_rustup__help__toolchain__install_commands] )) || +_rustup__help__toolchain__install_commands() { + local commands; commands=() + _describe -t commands 'rustup help toolchain install commands' commands "$@" +} +(( $+functions[_rustup__help__toolchain__link_commands] )) || +_rustup__help__toolchain__link_commands() { + local commands; commands=() + _describe -t commands 'rustup help toolchain link commands' commands "$@" +} +(( $+functions[_rustup__help__toolchain__list_commands] )) || +_rustup__help__toolchain__list_commands() { + local commands; commands=() + _describe -t commands 'rustup help toolchain list commands' commands "$@" +} +(( $+functions[_rustup__help__toolchain__uninstall_commands] )) || +_rustup__help__toolchain__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup help toolchain uninstall commands' commands "$@" +} +(( $+functions[_rustup__help__uninstall_commands] )) || +_rustup__help__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup help uninstall commands' commands "$@" +} +(( $+functions[_rustup__help__update_commands] )) || +_rustup__help__update_commands() { + local commands; commands=() + _describe -t commands 'rustup help update commands' commands "$@" +} +(( $+functions[_rustup__help__which_commands] )) || +_rustup__help__which_commands() { + local commands; commands=() + _describe -t commands 'rustup help which commands' commands "$@" +} +(( $+functions[_rustup__install_commands] )) || +_rustup__install_commands() { + local commands; commands=() + _describe -t commands 'rustup install commands' commands "$@" +} +(( $+functions[_rustup__man_commands] )) || +_rustup__man_commands() { + local commands; commands=() + _describe -t commands 'rustup man commands' commands "$@" +} +(( $+functions[_rustup__override_commands] )) || +_rustup__override_commands() { + local commands; commands=( +'list:List directory toolchain overrides' \ +'set:Set the override toolchain for a directory' \ +'unset:Remove the override toolchain for a directory' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup override commands' commands "$@" +} +(( $+functions[_rustup__override__help_commands] )) || +_rustup__override__help_commands() { + local commands; commands=( +'list:List directory toolchain overrides' \ +'set:Set the override toolchain for a directory' \ +'unset:Remove the override toolchain for a directory' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup override help commands' commands "$@" +} +(( $+functions[_rustup__override__help__help_commands] )) || +_rustup__override__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup override help help commands' commands "$@" +} +(( $+functions[_rustup__override__help__list_commands] )) || +_rustup__override__help__list_commands() { + local commands; commands=() + _describe -t commands 'rustup override help list commands' commands "$@" +} +(( $+functions[_rustup__override__help__set_commands] )) || +_rustup__override__help__set_commands() { + local commands; commands=() + _describe -t commands 'rustup override help set commands' commands "$@" +} +(( $+functions[_rustup__override__help__unset_commands] )) || +_rustup__override__help__unset_commands() { + local commands; commands=() + _describe -t commands 'rustup override help unset commands' commands "$@" +} +(( $+functions[_rustup__override__list_commands] )) || +_rustup__override__list_commands() { + local commands; commands=() + _describe -t commands 'rustup override list commands' commands "$@" +} +(( $+functions[_rustup__override__set_commands] )) || +_rustup__override__set_commands() { + local commands; commands=() + _describe -t commands 'rustup override set commands' commands "$@" +} +(( $+functions[_rustup__override__unset_commands] )) || +_rustup__override__unset_commands() { + local commands; commands=() + _describe -t commands 'rustup override unset commands' commands "$@" +} +(( $+functions[_rustup__run_commands] )) || +_rustup__run_commands() { + local commands; commands=() + _describe -t commands 'rustup run commands' commands "$@" +} +(( $+functions[_rustup__self_commands] )) || +_rustup__self_commands() { + local commands; commands=( +'update:Download and install updates to rustup' \ +'uninstall:Uninstall rustup' \ +'upgrade-data:Upgrade the internal data format' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup self commands' commands "$@" +} +(( $+functions[_rustup__self__help_commands] )) || +_rustup__self__help_commands() { + local commands; commands=( +'update:Download and install updates to rustup' \ +'uninstall:Uninstall rustup' \ +'upgrade-data:Upgrade the internal data format' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup self help commands' commands "$@" +} +(( $+functions[_rustup__self__help__help_commands] )) || +_rustup__self__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup self help help commands' commands "$@" +} +(( $+functions[_rustup__self__help__uninstall_commands] )) || +_rustup__self__help__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup self help uninstall commands' commands "$@" +} +(( $+functions[_rustup__self__help__update_commands] )) || +_rustup__self__help__update_commands() { + local commands; commands=() + _describe -t commands 'rustup self help update commands' commands "$@" +} +(( $+functions[_rustup__self__help__upgrade-data_commands] )) || +_rustup__self__help__upgrade-data_commands() { + local commands; commands=() + _describe -t commands 'rustup self help upgrade-data commands' commands "$@" +} +(( $+functions[_rustup__self__uninstall_commands] )) || +_rustup__self__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup self uninstall commands' commands "$@" +} +(( $+functions[_rustup__self__update_commands] )) || +_rustup__self__update_commands() { + local commands; commands=() + _describe -t commands 'rustup self update commands' commands "$@" +} +(( $+functions[_rustup__self__upgrade-data_commands] )) || +_rustup__self__upgrade-data_commands() { + local commands; commands=() + _describe -t commands 'rustup self upgrade-data commands' commands "$@" +} +(( $+functions[_rustup__set_commands] )) || +_rustup__set_commands() { + local commands; commands=( +'default-host:The triple used to identify toolchains when not specified' \ +'profile:The default components installed with a toolchain' \ +'auto-self-update:The rustup auto self update mode' \ +'auto-install:The auto toolchain install mode' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup set commands' commands "$@" +} +(( $+functions[_rustup__set__auto-install_commands] )) || +_rustup__set__auto-install_commands() { + local commands; commands=() + _describe -t commands 'rustup set auto-install commands' commands "$@" +} +(( $+functions[_rustup__set__auto-self-update_commands] )) || +_rustup__set__auto-self-update_commands() { + local commands; commands=() + _describe -t commands 'rustup set auto-self-update commands' commands "$@" +} +(( $+functions[_rustup__set__default-host_commands] )) || +_rustup__set__default-host_commands() { + local commands; commands=() + _describe -t commands 'rustup set default-host commands' commands "$@" +} +(( $+functions[_rustup__set__help_commands] )) || +_rustup__set__help_commands() { + local commands; commands=( +'default-host:The triple used to identify toolchains when not specified' \ +'profile:The default components installed with a toolchain' \ +'auto-self-update:The rustup auto self update mode' \ +'auto-install:The auto toolchain install mode' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup set help commands' commands "$@" +} +(( $+functions[_rustup__set__help__auto-install_commands] )) || +_rustup__set__help__auto-install_commands() { + local commands; commands=() + _describe -t commands 'rustup set help auto-install commands' commands "$@" +} +(( $+functions[_rustup__set__help__auto-self-update_commands] )) || +_rustup__set__help__auto-self-update_commands() { + local commands; commands=() + _describe -t commands 'rustup set help auto-self-update commands' commands "$@" +} +(( $+functions[_rustup__set__help__default-host_commands] )) || +_rustup__set__help__default-host_commands() { + local commands; commands=() + _describe -t commands 'rustup set help default-host commands' commands "$@" +} +(( $+functions[_rustup__set__help__help_commands] )) || +_rustup__set__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup set help help commands' commands "$@" +} +(( $+functions[_rustup__set__help__profile_commands] )) || +_rustup__set__help__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup set help profile commands' commands "$@" +} +(( $+functions[_rustup__set__profile_commands] )) || +_rustup__set__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup set profile commands' commands "$@" +} +(( $+functions[_rustup__show_commands] )) || +_rustup__show_commands() { + local commands; commands=( +'active-toolchain:Show the active toolchain' \ +'home:Display the computed value of RUSTUP_HOME' \ +'profile:Show the default profile used for the \`rustup install\` command' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup show commands' commands "$@" +} +(( $+functions[_rustup__show__active-toolchain_commands] )) || +_rustup__show__active-toolchain_commands() { + local commands; commands=() + _describe -t commands 'rustup show active-toolchain commands' commands "$@" +} +(( $+functions[_rustup__show__help_commands] )) || +_rustup__show__help_commands() { + local commands; commands=( +'active-toolchain:Show the active toolchain' \ +'home:Display the computed value of RUSTUP_HOME' \ +'profile:Show the default profile used for the \`rustup install\` command' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup show help commands' commands "$@" +} +(( $+functions[_rustup__show__help__active-toolchain_commands] )) || +_rustup__show__help__active-toolchain_commands() { + local commands; commands=() + _describe -t commands 'rustup show help active-toolchain commands' commands "$@" +} +(( $+functions[_rustup__show__help__help_commands] )) || +_rustup__show__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup show help help commands' commands "$@" +} +(( $+functions[_rustup__show__help__home_commands] )) || +_rustup__show__help__home_commands() { + local commands; commands=() + _describe -t commands 'rustup show help home commands' commands "$@" +} +(( $+functions[_rustup__show__help__profile_commands] )) || +_rustup__show__help__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup show help profile commands' commands "$@" +} +(( $+functions[_rustup__show__home_commands] )) || +_rustup__show__home_commands() { + local commands; commands=() + _describe -t commands 'rustup show home commands' commands "$@" +} +(( $+functions[_rustup__show__profile_commands] )) || +_rustup__show__profile_commands() { + local commands; commands=() + _describe -t commands 'rustup show profile commands' commands "$@" +} +(( $+functions[_rustup__target_commands] )) || +_rustup__target_commands() { + local commands; commands=( +'list:List installed and available targets' \ +'add:Add a target to a Rust toolchain' \ +'remove:Remove a target from a Rust toolchain' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup target commands' commands "$@" +} +(( $+functions[_rustup__target__add_commands] )) || +_rustup__target__add_commands() { + local commands; commands=() + _describe -t commands 'rustup target add commands' commands "$@" +} +(( $+functions[_rustup__target__help_commands] )) || +_rustup__target__help_commands() { + local commands; commands=( +'list:List installed and available targets' \ +'add:Add a target to a Rust toolchain' \ +'remove:Remove a target from a Rust toolchain' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup target help commands' commands "$@" +} +(( $+functions[_rustup__target__help__add_commands] )) || +_rustup__target__help__add_commands() { + local commands; commands=() + _describe -t commands 'rustup target help add commands' commands "$@" +} +(( $+functions[_rustup__target__help__help_commands] )) || +_rustup__target__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup target help help commands' commands "$@" +} +(( $+functions[_rustup__target__help__list_commands] )) || +_rustup__target__help__list_commands() { + local commands; commands=() + _describe -t commands 'rustup target help list commands' commands "$@" +} +(( $+functions[_rustup__target__help__remove_commands] )) || +_rustup__target__help__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup target help remove commands' commands "$@" +} +(( $+functions[_rustup__target__list_commands] )) || +_rustup__target__list_commands() { + local commands; commands=() + _describe -t commands 'rustup target list commands' commands "$@" +} +(( $+functions[_rustup__target__remove_commands] )) || +_rustup__target__remove_commands() { + local commands; commands=() + _describe -t commands 'rustup target remove commands' commands "$@" +} +(( $+functions[_rustup__toolchain_commands] )) || +_rustup__toolchain_commands() { + local commands; commands=( +'list:List installed toolchains' \ +'install:Install or update the given toolchains, or by default the active toolchain' \ +'uninstall:Uninstall the given toolchains' \ +'link:Create a custom toolchain by symlinking to a directory' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup toolchain commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help_commands] )) || +_rustup__toolchain__help_commands() { + local commands; commands=( +'list:List installed toolchains' \ +'install:Install or update the given toolchains, or by default the active toolchain' \ +'uninstall:Uninstall the given toolchains' \ +'link:Create a custom toolchain by symlinking to a directory' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'rustup toolchain help commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help__help_commands] )) || +_rustup__toolchain__help__help_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain help help commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help__install_commands] )) || +_rustup__toolchain__help__install_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain help install commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help__link_commands] )) || +_rustup__toolchain__help__link_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain help link commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help__list_commands] )) || +_rustup__toolchain__help__list_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain help list commands' commands "$@" +} +(( $+functions[_rustup__toolchain__help__uninstall_commands] )) || +_rustup__toolchain__help__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain help uninstall commands' commands "$@" +} +(( $+functions[_rustup__toolchain__install_commands] )) || +_rustup__toolchain__install_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain install commands' commands "$@" +} +(( $+functions[_rustup__toolchain__link_commands] )) || +_rustup__toolchain__link_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain link commands' commands "$@" +} +(( $+functions[_rustup__toolchain__list_commands] )) || +_rustup__toolchain__list_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain list commands' commands "$@" +} +(( $+functions[_rustup__toolchain__uninstall_commands] )) || +_rustup__toolchain__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup toolchain uninstall commands' commands "$@" +} +(( $+functions[_rustup__uninstall_commands] )) || +_rustup__uninstall_commands() { + local commands; commands=() + _describe -t commands 'rustup uninstall commands' commands "$@" +} +(( $+functions[_rustup__update_commands] )) || +_rustup__update_commands() { + local commands; commands=() + _describe -t commands 'rustup update commands' commands "$@" +} +(( $+functions[_rustup__which_commands] )) || +_rustup__which_commands() { + local commands; commands=() + _describe -t commands 'rustup which commands' commands "$@" +} + +if [ "$funcstack[1]" = "_rustup" ]; then + _rustup "$@" +else + compdef _rustup rustup +fi diff --git a/.zshrc b/.zshrc index 632f81e..deeda4f 100644 --- a/.zshrc +++ b/.zshrc @@ -81,9 +81,6 @@ plugins=( source $ZSH/oh-my-zsh.sh -# cargo -# exec ~/.cargo/env - # User configuration # export MANPATH="/usr/local/man:$MANPATH" @@ -118,12 +115,13 @@ source $ZSH/oh-my-zsh.sh alias zshedit="vim ~/.zshrc" alias i3edit="vim ~/.config/i3/config" alias zshrefresh="source ~/.zshrc" -alias update="sudo ~/scripts/update" path+=("$HOME/.local/bin") path+=("$HOME/scripts") path+=("/var/lib/flatpak/exports/share/applications") path+=("$HOME/go/bin") +fpath+=~/.zfunc + export PATH autoload bashcompinit bashcompinit