···77# Contributions very welcome!!
8899function __fish__get_bun_bins
1010- string split ' ' (bun getcompletes b)
1010+ string split ' ' (bun getcompletes b)
1111end
12121313function __fish__get_bun_scripts
1414- set -lx SHELL bash
1515- set -lx MAX_DESCRIPTION_LEN 40
1616- string trim (string split '\n' (string split '\t' (bun getcompletes z)))
1414+ set -lx SHELL bash
1515+ set -lx MAX_DESCRIPTION_LEN 40
1616+ string trim (string split '\n' (string split '\t' (bun getcompletes z)))
1717end
18181919function __fish__get_bun_packages
2020- if test (commandline -ct) != ""
2121- set -lx SHELL fish
2222- string split ' ' (bun getcompletes a (commandline -ct))
2323- end
2020+ if test (commandline -ct) != ""
2121+ set -lx SHELL fish
2222+ string split ' ' (bun getcompletes a (commandline -ct))
2323+ end
2424end
25252626function __history_completions
2727- set -l tokens (commandline --current-process --tokenize)
2828- history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' '
2727+ set -l tokens (commandline --current-process --tokenize)
2828+ history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' '
2929end
30303131function __fish__get_bun_bun_js_files
3232- string split ' ' (bun getcompletes j)
3232+ string split ' ' (bun getcompletes j)
3333end
34343535function bun_fish_is_nth_token --description 'Test if current token is on Nth place' --argument-names n
3636- set -l tokens (commandline -poc)
3737- set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens)
3838- test (count $tokens) -eq "$n"
3636+ set -l tokens (commandline -poc)
3737+ set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens)
3838+ test (count $tokens) -eq "$n"
3939end
40404141function __bun_command_count --argument-names n
4242- set -l cmds (commandline -poc)
4242+ set -l cmds (commandline -poc)
43434444- test (count cmds) -eq "$n"
4444+ test (count cmds) -eq "$n"
4545end
46464747function __bun_last_cmd --argument-names n
4848- set -l cmds (commandline -poc)
4848+ set -l cmds (commandline -poc)
49495050- test "(cmds[-1])" = "$n"
5050+ test "(cmds[-1])" = "$n"
5151end
52525353set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global
···6666complete -e -c bun
67676868complete -c bun \
6969- -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'
6969+ -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
7070complete -c bun \
7171- -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'
7171+ -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'
7272complete -c bun \
7373- -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'
7373+ -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
7474complete -c bun \
7575- -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'
7575+ -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'
7676complete -c bun \
7777- -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'
7777+ -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'
7878complete -c bun \
7979- -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'
7979+ -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'
8080complete -c bun \
8181- -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'
8181+ -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'
8282complete -c bun \
8383- -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\"'
8383+ -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\"'
8484complete -c bun \
8585- -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'
8585+ -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'
8686complete -c bun \
8787- -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)'
8787+ -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)'
8888complete -c bun \
8989- -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'
9090-8989+ -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'
9090+9191complete -c bun \
9292- -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'
9292+ -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'
9393complete -c bun \
9494- -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'
9494+ -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'
95959696complete -c bun \
9797- -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'
9797+ -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'
98989999complete -c bun \
100100- -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'
100100+ -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'
101101102102complete -c bun \
103103- -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
103103+ -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
104104complete -c bun \
105105- -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
105105+ -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
106106107107complete -c bun \
108108- -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
108108+ -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
109109complete -c bun \
110110- -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
110110+ -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
111111112112113113complete -c bun \
114114- -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'
114114+ -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'
115115116116117117complete -c bun \
118118- -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'
118118+ -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'
119119120120complete -c bun \
121121- -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"
121121+ -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"
122122123123124124complete -c bun \
125125- -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'
125125+ -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'
126126127127complete -c bun \
128128- -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'
128128+ -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'
129129130130complete -c bun \
131131- -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'
132132-131131+ -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'
132132+133133complete -c bun \
134134- -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'
134134+ -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'
135135136136complete -c bun \
137137- -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
137137+ -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
138138+138139139139-140140for i in (seq (count $bun_install_boolean_flags))
141141- complete -c bun \
142142- -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]"
141141+ complete -c bun \
142142+ -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]"
143143end
144144145145complete -c bun \
146146- -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'
146146+ -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'
147147148148complete -c bun \
149149- -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)'
149149+ -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)'
150150151151complete -c bun \
152152- -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)'
152152+ -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)'
153153154154complete -c bun \
155155- -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)'
156156-155155+ -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)'
156156+157157complete -c bun \
158158- -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
158158+ -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
159159160160complete -c bun \
161161- -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
161161+ -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
162162163163-complete -c bun -n "not __fish_seen_subcommand_from $bun_builtin_cmds (__fish__get_bun_bins) (__fish__get_bun_scripts)" -a "$bun_builtin_cmds" -f163163+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
···22set host (hostname)
3344if test -e /opt/homebrew/bin/brew
55- eval (/opt/homebrew/bin/brew shellenv)
55+ eval (/opt/homebrew/bin/brew shellenv)
66else if test -e /Volumes/T7/homebrew/bin/brew
77- eval (/Volumes/T7/homebrew/bin/brew shellenv)
77+ eval (/Volumes/T7/homebrew/bin/brew shellenv)
88else if test -e $HOME/homebrew/bin/brew
99- eval ($HOME/homebrew/bin/brew shellenv)
99+ eval ($HOME/homebrew/bin/brew shellenv)
1010end
11111212if string match -q -- "*microsoft*" (uname -a)
1313- ulimit -n 65535 # no idea how to set this permanently in WSL
1313+ ulimit -n 65535 # no idea how to set this permanently in WSL
14141515- set -gx DBUS_SESSION_BUS_ADDRESS unix:path=/run/user/1000/bus
1616- set -gx DEBUGINFOD_URLS "https://debuginfod.archlinux.org"
1717- set -gx SSH_AUTH_SOCK $HOME/.ssh/agent.sock
1515+ set -gx DBUS_SESSION_BUS_ADDRESS unix:path=/run/user/1000/bus
1616+ set -gx DEBUGINFOD_URLS "https://debuginfod.archlinux.org"
1717+ set -gx SSH_AUTH_SOCK $HOME/.ssh/agent.sock
18181919- if not ss -a | grep -q $SSH_AUTH_SOCK
2020- rm -f $SSH_AUTH_SOCK
1919+ if not ss -a | grep -q $SSH_AUTH_SOCK
2020+ rm -f $SSH_AUTH_SOCK
21212222- if string match -iq -- "bamibal" $host
2323- set -gx user "Bas" # I don't remember what this is for but it's here now
2222+ if string match -iq -- bamibal $host
2323+ set -gx user Bas # I don't remember what this is for but it's here now
2424+ end
2525+2626+ 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
2427 end
2525-2626- 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
2727- end
2828else if string match -q -- "*codam.nl*" $host
2929- if string match -q -- "*Darwin*" $uname
3030- ulimit -n 10240
2929+ if string match -q -- "*Darwin*" $uname
3030+ ulimit -n 10240
31313232- #set -gx HOMEBREW_CORE_GIT_REMOTE "https://github.com/gromgit/homebrew-core-mojave"
3333- set -gx HOMEBREW_TEMP /Volumes/T7/homebrew/tmp
3232+ #set -gx HOMEBREW_CORE_GIT_REMOTE "https://github.com/gromgit/homebrew-core-mojave"
3333+ set -gx HOMEBREW_TEMP /Volumes/T7/homebrew/tmp
34343535- fish_add_path -g /Applications/CLion.app/Contents/bin/gdb/mac/bin
3636- else
3737- fish_add_path -g $HOME/.local/bin
3535+ fish_add_path -g /Applications/CLion.app/Contents/bin/gdb/mac/bin
3636+ else
3737+ fish_add_path -g $HOME/.local/bin
38383939- # the horror that is compiling python using rtx/pyenv on Linux with homebrew libs
4040- set -gx PKG_CONFIG_PATH \
4141- (brew --prefix readline)/lib/pkgconfig \
4242- (brew --prefix openssl)/lib/pkgconfig \
4343- (brew --prefix sqlite3)/lib/pkgconfig \
4444- (brew --prefix tcl-tk)/lib/pkgconfig \
4545- (brew --prefix zlib)/lib/pkgconfig \
4646- (brew --prefix bzip2)/lib/pkgconfig
4747- end
3939+ # the horror that is compiling python using rtx/pyenv on Linux with homebrew libs
4040+ set -gx PKG_CONFIG_PATH \
4141+ (brew --prefix readline)/lib/pkgconfig \
4242+ (brew --prefix openssl)/lib/pkgconfig \
4343+ (brew --prefix sqlite3)/lib/pkgconfig \
4444+ (brew --prefix tcl-tk)/lib/pkgconfig \
4545+ (brew --prefix zlib)/lib/pkgconfig \
4646+ (brew --prefix bzip2)/lib/pkgconfig
4747+ end
4848end
49495050command -sq rtx && rtx activate fish | source && rtx completion fish | source
···11function fish_remove_path
22- if set -l index (contains -i "$argv" $fish_user_paths)
33- set -e fish_user_paths[$index]
44- echo "Removed $argv from the path"
55- end
22+ if set -l index (contains -i "$argv" $fish_user_paths)
33+ set -e fish_user_paths[$index]
44+ echo "Removed $argv from the path"
55+ end
66end
···11function take --wraps='mkdir -p $argv && cd $argv' --description 'Create a directory and cd into it'
22- mkdir -p $argv && cd $argv
22+ mkdir -p $argv && cd $argv
33end