i use arch btw
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format with fish_indent

+123 -123
+58 -58
fish/.config/fish/completions/bun.fish
··· 7 7 # Contributions very welcome!! 8 8 9 9 function __fish__get_bun_bins 10 - string split ' ' (bun getcompletes b) 10 + string split ' ' (bun getcompletes b) 11 11 end 12 12 13 13 function __fish__get_bun_scripts 14 - set -lx SHELL bash 15 - set -lx MAX_DESCRIPTION_LEN 40 16 - string trim (string split '\n' (string split '\t' (bun getcompletes z))) 14 + set -lx SHELL bash 15 + set -lx MAX_DESCRIPTION_LEN 40 16 + string trim (string split '\n' (string split '\t' (bun getcompletes z))) 17 17 end 18 18 19 19 function __fish__get_bun_packages 20 - if test (commandline -ct) != "" 21 - set -lx SHELL fish 22 - string split ' ' (bun getcompletes a (commandline -ct)) 23 - end 20 + if test (commandline -ct) != "" 21 + set -lx SHELL fish 22 + string split ' ' (bun getcompletes a (commandline -ct)) 23 + end 24 24 end 25 25 26 26 function __history_completions 27 - set -l tokens (commandline --current-process --tokenize) 28 - history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' ' 27 + set -l tokens (commandline --current-process --tokenize) 28 + history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' ' 29 29 end 30 30 31 31 function __fish__get_bun_bun_js_files 32 - string split ' ' (bun getcompletes j) 32 + string split ' ' (bun getcompletes j) 33 33 end 34 34 35 35 function bun_fish_is_nth_token --description 'Test if current token is on Nth place' --argument-names n 36 - set -l tokens (commandline -poc) 37 - set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) 38 - test (count $tokens) -eq "$n" 36 + set -l tokens (commandline -poc) 37 + set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) 38 + test (count $tokens) -eq "$n" 39 39 end 40 40 41 41 function __bun_command_count --argument-names n 42 - set -l cmds (commandline -poc) 42 + set -l cmds (commandline -poc) 43 43 44 - test (count cmds) -eq "$n" 44 + test (count cmds) -eq "$n" 45 45 end 46 46 47 47 function __bun_last_cmd --argument-names n 48 - set -l cmds (commandline -poc) 48 + set -l cmds (commandline -poc) 49 49 50 - test "(cmds[-1])" = "$n" 50 + test "(cmds[-1])" = "$n" 51 51 end 52 52 53 53 set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global ··· 66 66 complete -e -c bun 67 67 68 68 complete -c bun \ 69 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a '(__fish__get_bun_scripts)' -d 'script' 69 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a '(__fish__get_bun_scripts)' -d script 70 70 complete -c bun \ 71 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bins)' -d 'package bin' 71 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bins)' -d 'package bin' 72 72 complete -c bun \ 73 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_scripts)' -d 'script' 73 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_scripts)' -d script 74 74 complete -c bun \ 75 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bun_js_files)' -d 'Bun.js' 75 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_run; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from run" -a '(__fish__get_bun_bun_js_files)' -d 'Bun.js' 76 76 complete -c bun \ 77 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a 'run' -f -d 'Run a script or bin' 77 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a run -f -d 'Run a script or bin' 78 78 complete -c bun \ 79 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'u' -l 'origin' -r -d 'Server URL. Rewrites import paths' 79 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s u -l origin -r -d 'Server URL. Rewrites import paths' 80 80 complete -c bun \ 81 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' 81 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s p -l port -r -d 'Port number to start server from' 82 82 complete -c bun \ 83 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'd' -l 'define' -r -d 'Substitute K:V while parsing, e.g. --define process.env.NODE_ENV:\"development\"' 83 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s d -l define -r -d 'Substitute K:V while parsing, e.g. --define process.env.NODE_ENV:\"development\"' 84 84 complete -c bun \ 85 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'e' -l 'external' -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' 85 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s e -l external -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' 86 86 complete -c bun \ 87 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'use' -r -d 'Use a framework (ex: next)' 87 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l use -r -d 'Use a framework (ex: next)' 88 88 complete -c bun \ 89 - -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'hot' -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' 90 - 89 + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l hot -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' 90 + 91 91 complete -c bun \ 92 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a 'dev' -d 'Start dev server' 92 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a dev -d 'Start dev server' 93 93 complete -c bun \ 94 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'create' -f -d 'Create a new project from a template' 94 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a create -f -d 'Create a new project from a template' 95 95 96 96 complete -c bun \ 97 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a 'next' -d 'new Next.js project' 97 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a next -d 'new Next.js project' 98 98 99 99 complete -c bun \ 100 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a 'react' -d 'new React project' 100 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create next react; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from create;" -a react -d 'new React project' 101 101 102 102 complete -c bun \ 103 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a 'upgrade' -d 'Upgrade bun to the latest version' -x 103 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a upgrade -d 'Upgrade bun to the latest version' -x 104 104 complete -c bun \ 105 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a '--help' -d 'See all commands and flags' -x 105 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a --help -d 'See all commands and flags' -x 106 106 107 107 complete -c bun \ 108 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -l "version" -s "v" -a '--version' -d 'Bun\'s version' -x 108 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -l version -s v -a --version -d 'Bun\'s version' -x 109 109 complete -c bun \ 110 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a 'discord' -d 'Open bun\'s Discord server' -x 110 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_use_subcommand" -a discord -d 'Open bun\'s Discord server' -x 111 111 112 112 113 113 complete -c bun \ 114 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); __fish_use_subcommand" -a 'bun' -d 'Generate a new bundle' 114 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); __fish_use_subcommand" -a bun -d 'Generate a new bundle' 115 115 116 116 117 117 complete -c bun \ 118 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from bun" -F -d 'Bundle this' 118 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_bun; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from bun" -F -d 'Bundle this' 119 119 120 120 complete -c bun \ 121 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create; and not __fish_seen_subcommand_from (__fish__get_bun_bins); and not __fish_seen_subcommand_from (__fish__get_bun_scripts); and __fish_seen_subcommand_from react; or __fish_seen_subcommand_from next" -F -d "Create in directory" 121 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_create; and not __fish_seen_subcommand_from (__fish__get_bun_bins); and not __fish_seen_subcommand_from (__fish__get_bun_scripts); and __fish_seen_subcommand_from react; or __fish_seen_subcommand_from next" -F -d "Create in directory" 122 122 123 123 124 124 complete -c bun \ 125 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'init' -F -d 'Start an empty Bun project' 125 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a init -F -d 'Start an empty Bun project' 126 126 127 127 complete -c bun \ 128 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'install' -f -d 'Install packages from package.json' 128 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a install -f -d 'Install packages from package.json' 129 129 130 130 complete -c bun \ 131 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'add' -F -d 'Add a package to package.json' 132 - 131 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a add -F -d 'Add a package to package.json' 132 + 133 133 complete -c bun \ 134 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a 'remove' -F -d 'Remove a package from package.json' 134 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand" -a remove -F -d 'Remove a package from package.json' 135 135 136 136 complete -c bun \ 137 - -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand add remove" -F 137 + -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __bun_command_count 1 and __fish_use_subcommand add remove" -F 138 + 138 139 139 - 140 140 for i in (seq (count $bun_install_boolean_flags)) 141 - complete -c bun \ 142 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" 141 + complete -c bun \ 142 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" 143 143 end 144 144 145 145 complete -c bun \ 146 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l 'cwd' -d 'Change working directory' 146 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l cwd -d 'Change working directory' 147 147 148 148 complete -c bun \ 149 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l 'cache-dir' -d 'Choose a cache directory (default: $HOME/.bun/install/cache)' 149 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from install add remove;" -l cache-dir -d 'Choose a cache directory (default: $HOME/.bun/install/cache)' 150 150 151 151 complete -c bun \ 152 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from add;" -d 'Popular' -a '(__fish__get_bun_packages)' 152 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from add;" -d Popular -a '(__fish__get_bun_packages)' 153 153 154 154 complete -c bun \ 155 - -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from add;" -d 'History' -a '(__history_completions)' 156 - 155 + -n "not __fish_seen_subcommand_from $bun_builtin_cmds_without_pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts); and __fish_seen_subcommand_from add;" -d History -a '(__history_completions)' 156 + 157 157 complete -c bun \ 158 - -n "__fish_seen_subcommand_from pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) cache;" -a 'bin ls cache hash hash-print hash-string' -f 158 + -n "__fish_seen_subcommand_from pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) cache;" -a 'bin ls cache hash hash-print hash-string' -f 159 159 160 160 complete -c bun \ 161 - -n "__fish_seen_subcommand_from pm; and __fish_seen_subcommand_from cache; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts);" -a 'rm' -f 161 + -n "__fish_seen_subcommand_from pm; and __fish_seen_subcommand_from cache; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts);" -a rm -f 162 162 163 - complete -c bun -n "not __fish_seen_subcommand_from $bun_builtin_cmds (__fish__get_bun_bins) (__fish__get_bun_scripts)" -a "$bun_builtin_cmds" -f 163 + complete -c bun -n "not __fish_seen_subcommand_from $bun_builtin_cmds (__fish__get_bun_bins) (__fish__get_bun_scripts)" -a "$bun_builtin_cmds" -f
+30 -30
fish/.config/fish/config.fish
··· 2 2 set host (hostname) 3 3 4 4 if test -e /opt/homebrew/bin/brew 5 - eval (/opt/homebrew/bin/brew shellenv) 5 + eval (/opt/homebrew/bin/brew shellenv) 6 6 else if test -e /Volumes/T7/homebrew/bin/brew 7 - eval (/Volumes/T7/homebrew/bin/brew shellenv) 7 + eval (/Volumes/T7/homebrew/bin/brew shellenv) 8 8 else if test -e $HOME/homebrew/bin/brew 9 - eval ($HOME/homebrew/bin/brew shellenv) 9 + eval ($HOME/homebrew/bin/brew shellenv) 10 10 end 11 11 12 12 if string match -q -- "*microsoft*" (uname -a) 13 - ulimit -n 65535 # no idea how to set this permanently in WSL 13 + ulimit -n 65535 # no idea how to set this permanently in WSL 14 14 15 - set -gx DBUS_SESSION_BUS_ADDRESS unix:path=/run/user/1000/bus 16 - set -gx DEBUGINFOD_URLS "https://debuginfod.archlinux.org" 17 - set -gx SSH_AUTH_SOCK $HOME/.ssh/agent.sock 15 + set -gx DBUS_SESSION_BUS_ADDRESS unix:path=/run/user/1000/bus 16 + set -gx DEBUGINFOD_URLS "https://debuginfod.archlinux.org" 17 + set -gx SSH_AUTH_SOCK $HOME/.ssh/agent.sock 18 18 19 - if not ss -a | grep -q $SSH_AUTH_SOCK 20 - rm -f $SSH_AUTH_SOCK 19 + if not ss -a | grep -q $SSH_AUTH_SOCK 20 + rm -f $SSH_AUTH_SOCK 21 21 22 - if string match -iq -- "bamibal" $host 23 - set -gx user "Bas" # I don't remember what this is for but it's here now 22 + if string match -iq -- bamibal $host 23 + set -gx user Bas # I don't remember what this is for but it's here now 24 + end 25 + 26 + setsid --fork socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"/mnt/c/Users/$user/wsl-ssh-agent/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork 24 27 end 25 - 26 - setsid --fork socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"/mnt/c/Users/$user/wsl-ssh-agent/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork 27 - end 28 28 else if string match -q -- "*codam.nl*" $host 29 - if string match -q -- "*Darwin*" $uname 30 - ulimit -n 10240 29 + if string match -q -- "*Darwin*" $uname 30 + ulimit -n 10240 31 31 32 - #set -gx HOMEBREW_CORE_GIT_REMOTE "https://github.com/gromgit/homebrew-core-mojave" 33 - set -gx HOMEBREW_TEMP /Volumes/T7/homebrew/tmp 32 + #set -gx HOMEBREW_CORE_GIT_REMOTE "https://github.com/gromgit/homebrew-core-mojave" 33 + set -gx HOMEBREW_TEMP /Volumes/T7/homebrew/tmp 34 34 35 - fish_add_path -g /Applications/CLion.app/Contents/bin/gdb/mac/bin 36 - else 37 - fish_add_path -g $HOME/.local/bin 35 + fish_add_path -g /Applications/CLion.app/Contents/bin/gdb/mac/bin 36 + else 37 + fish_add_path -g $HOME/.local/bin 38 38 39 - # the horror that is compiling python using rtx/pyenv on Linux with homebrew libs 40 - set -gx PKG_CONFIG_PATH \ 41 - (brew --prefix readline)/lib/pkgconfig \ 42 - (brew --prefix openssl)/lib/pkgconfig \ 43 - (brew --prefix sqlite3)/lib/pkgconfig \ 44 - (brew --prefix tcl-tk)/lib/pkgconfig \ 45 - (brew --prefix zlib)/lib/pkgconfig \ 46 - (brew --prefix bzip2)/lib/pkgconfig 47 - end 39 + # the horror that is compiling python using rtx/pyenv on Linux with homebrew libs 40 + set -gx PKG_CONFIG_PATH \ 41 + (brew --prefix readline)/lib/pkgconfig \ 42 + (brew --prefix openssl)/lib/pkgconfig \ 43 + (brew --prefix sqlite3)/lib/pkgconfig \ 44 + (brew --prefix tcl-tk)/lib/pkgconfig \ 45 + (brew --prefix zlib)/lib/pkgconfig \ 46 + (brew --prefix bzip2)/lib/pkgconfig 47 + end 48 48 end 49 49 50 50 command -sq rtx && rtx activate fish | source && rtx completion fish | source
+1 -1
fish/.config/fish/functions/:q.fish
··· 1 1 function :q --wraps=exit --description 'alias :q exit' 2 - exit $argv; 2 + exit $argv 3 3 end
+6 -6
fish/.config/fish/functions/__select_from_last.fish
··· 1 1 function __select_from_last 2 - set -l FZF_OUT (eval $history[1] | fzf --select-1 --exit-0) 3 - set -l POS (commandline -C) 4 - if test -n "$FZF_OUT" 5 - commandline -a $FZF_OUT 6 - commandline -C (math ""(string length $FZF_OUT)" + $POS") 7 - end 2 + set -l FZF_OUT (eval $history[1] | fzf --select-1 --exit-0) 3 + set -l POS (commandline -C) 4 + if test -n "$FZF_OUT" 5 + commandline -a $FZF_OUT 6 + commandline -C (math ""(string length $FZF_OUT)" + $POS") 7 + end 8 8 end
+1 -1
fish/.config/fish/functions/adb.fish
··· 1 1 function adb --wraps=adb.exe --description 'alias adb=adb.exe' 2 - adb.exe $argv 2 + adb.exe $argv 3 3 end
+1 -1
fish/.config/fish/functions/bastion365.fish
··· 1 1 function bastion365 --wraps='docker-compose -f /home/bas/dev/DBX.WebApp/docker-compose.yml' --description 'alias bastion365 docker-compose -f /home/bas/dev/DBX.WebApp/docker-compose.yml' 2 - docker-compose -f /home/bas/dev/DBX.WebApp/docker-compose.yml $argv; 2 + docker-compose -f /home/bas/dev/DBX.WebApp/docker-compose.yml $argv 3 3 end
+1 -1
fish/.config/fish/functions/choco.fish
··· 1 1 function choco --wraps=choco.exe --description 'alias choco=choco.exe' 2 - choco.exe $argv 2 + choco.exe $argv 3 3 end
+1 -1
fish/.config/fish/functions/fastboot.fish
··· 1 1 function fastboot --wraps=fastboot.exe --description 'alias fastboot=fastboot.exe' 2 - fastboot.exe $argv 2 + fastboot.exe $argv 3 3 end
+4 -4
fish/.config/fish/functions/fish_remove_path.fish
··· 1 1 function fish_remove_path 2 - if set -l index (contains -i "$argv" $fish_user_paths) 3 - set -e fish_user_paths[$index] 4 - echo "Removed $argv from the path" 5 - end 2 + if set -l index (contains -i "$argv" $fish_user_paths) 3 + set -e fish_user_paths[$index] 4 + echo "Removed $argv from the path" 5 + end 6 6 end
+1 -1
fish/.config/fish/functions/gsudo.fish
··· 1 1 function gsudo --wraps=sudo.exe --description 'alias gsudo=sudo.exe' 2 - sudo.exe $argv 2 + sudo.exe $argv 3 3 end
+1 -1
fish/.config/fish/functions/ip.fish
··· 1 1 function ip --description 'alias ip ip --color=auto' 2 - command ip --color=auto $argv 2 + command ip --color=auto $argv 3 3 end
+1 -1
fish/.config/fish/functions/keybase.fish
··· 1 1 function keybase --wraps=keybase.exe --description 'alias keybase keybase.exe' 2 - keybase.exe $argv 2 + keybase.exe $argv 3 3 end
+5 -5
fish/.config/fish/functions/paco.fish
··· 1 1 function paco --wraps=/Volumes/T7/francinette/tester.sh --description 'alias paco /Volumes/T7/francinette/tester.sh' 2 - if test -e /Volumes/T7/francinette/tester.sh 3 - /Volumes/T7/francinette/tester.sh $argv; 4 - else 5 - $HOME/francinette/tester.sh $argv 6 - end 2 + if test -e /Volumes/T7/francinette/tester.sh 3 + /Volumes/T7/francinette/tester.sh $argv 4 + else 5 + $HOME/francinette/tester.sh $argv 6 + end 7 7 end
+1 -1
fish/.config/fish/functions/rg.fish
··· 1 1 function rg --description 'alias rg rg -S' 2 - command rg -S $argv 2 + command rg -S $argv 3 3 end
+5 -5
fish/.config/fish/functions/rr.fish
··· 1 1 # Defined interactively 2 2 function rr 3 - set PREV_CMD (history | head -1) 4 - set PREV_OUTPUT (eval $PREV_CMD) 5 - set CMD $argv[1] 6 - echo "Running '$CMD $PREV_OUTPUT'" 7 - eval "$CMD $PREV_OUTPUT" 3 + set PREV_CMD (history | head -1) 4 + set PREV_OUTPUT (eval $PREV_CMD) 5 + set CMD $argv[1] 6 + echo "Running '$CMD $PREV_OUTPUT'" 7 + eval "$CMD $PREV_OUTPUT" 8 8 end
+1 -1
fish/.config/fish/functions/spicetify.fish
··· 1 1 function spicetify --wraps=spicetify.exe --description 'alias spicetify=spicetify.exe' 2 - spicetify.exe $argv; 2 + spicetify.exe $argv 3 3 end
+1 -1
fish/.config/fish/functions/take.fish
··· 1 1 function take --wraps='mkdir -p $argv && cd $argv' --description 'Create a directory and cd into it' 2 - mkdir -p $argv && cd $argv 2 + mkdir -p $argv && cd $argv 3 3 end
+1 -1
fish/.config/fish/functions/to_list.fish
··· 1 1 function to_list --wraps=tr\ \'\ \'\ \\n\ \|\ nl --description alias\ to_list\ tr\ \'\ \'\ \\n\ \|\ nl 2 - tr ' ' \n | nl $argv 2 + tr ' ' \n | nl $argv 3 3 end
+3 -3
fish/.config/fish/functions/winget.fish
··· 1 1 function winget --wraps='cmd.exe /c winget.exe' --description 'alias winget=cmd.exe /c winget.exe' 2 - cd /mnt/c 3 - cmd.exe /c winget.exe $argv 4 - cd - 2 + cd /mnt/c 3 + cmd.exe /c winget.exe $argv 4 + cd - 5 5 end