File tree Expand file tree Collapse file tree 11 files changed +64
-17
lines changed Expand file tree Collapse file tree 11 files changed +64
-17
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,12 @@ i install
30
30
u uninstall
31
31
r run
32
32
rd run dev
33
+
34
+ # Shorten atuin command given I can never remember how to spell it
35
+ h atuin
36
+
37
+ # Use zoxide over cd
38
+ cd z
39
+
40
+ # Rust
41
+ cb cargo build
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ package bang-bang
3
3
package foreign-env
4
4
package https://github.com/jhillyerd/plugin-git
5
5
package https://github.com/lilyball/nix-env.fish
6
- package https://github.com/zephraph/yarn
7
6
package technicolor
8
- package z
7
+ package zoxide
Original file line number Diff line number Diff line change
1
+ function ai --description " Run a chatgpt query"
2
+ echo " $argv " | chat-gpt | glow
3
+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ function fix-nexus --description " Update Nexus's dependencies when a compile fails"
2
+ OSTYPE=linux-gnu tools/ci_download_dendrite_stub
3
+ OSTYPE=linux-gnu tools/ci_download_maghemite_mgd
4
+
5
+ # Add these to the path
6
+ set -gx DENDRITE_BIN_DIR /Users/just-be/Oxide/omicron/out/dendrite-stub/bin
7
+ set -gx MGD_BIN_DIR /Users/just-be/Oxide/omicron/out/mgd/root/opt/oxide/mgd/bin
8
+
9
+ readenv tools/dendrite_openapi_version
10
+ set -l DENDRITE_COMMIT " $COMMIT "
11
+
12
+ readenv tools/maghemite_mg_openapi_version
13
+ set -l MGD_COMMIT " $COMMIT "
14
+
15
+ cd ../dendrite
16
+ git fetch && git checkout $DENDRITE_COMMIT
17
+ cargo build -p dpd --release --features =tofino_stub
18
+ cargo build -p swadm --release
19
+ cp target/release/dpd " $DENDRITE_BIN_DIR /dpd"
20
+ cp target/release/swadm " $DENDRITE_BIN_DIR /swadm"
21
+ cd -
22
+
23
+ cd ../maghemite
24
+ git fetch && git checkout $MGD_COMMIT
25
+ cargo build -p mgd --release --no-default-features
26
+ cp target/release/mgd " $MGD_BIN_DIR /mgd"
27
+ cd -
28
+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ function ntp
2
+ set -l test (rg -A1 " \#\[(nexus_test|tokio::test)\]" --no-heading -IN | rg ' async fn (\ w+)' -o --no-heading --color never | awk ' {print $3}' | fzf)
3
+ run_with_history nt $test
4
+ end
Original file line number Diff line number Diff line change
1
+ # source: https://github.com/kowalski7cc/fish-readenv
2
+ function readenv --description " Reads the environment variables from a file"
3
+ for file in $argv
4
+ if test -r $file
5
+ for row in (read -z < $file )
6
+ set -l kv (string split -m 1 \ = $row )
7
+ set -gx (string trim $kv [1]) (string trim -c " \" " $kv [2])
8
+ end
9
+ end
10
+ end
11
+ end
Original file line number Diff line number Diff line change
1
+ function run_with_history
2
+ add_history_entry $argv
3
+ eval $argv
4
+ end
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ switch (uname)
78
78
git config --global core.pager delta
79
79
git config --global delta .syntax-theme Nord
80
80
end
81
+ if not type -q zoxide
82
+ cargo install zoxide --locked
83
+ end
81
84
case " *"
82
85
echo " This platform won't have everything. PRs welcome."
83
86
end
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ switch (uname)
18
18
set CFLAGS " -I(brew --prefix zlib)/include -I(brew --prefix sqlite)/include -I(brew --prefix bzip2)/include"
19
19
set LDFLAGS " -L(brew --prefix zlib)/lib -L(brew --prefix sqlite)/lib -L(brew --prefix bzip2)/lib"
20
20
source ~/.asdf/asdf.fish
21
- fish_add_path ~/Code/deno.run/.run ~/Oxide/omicron/out/dendrite-stub/root/opt/oxide/dendrite /bin ~/Scripts
21
+ fish_add_path ~/Code/deno.run/.run ~/Oxide/omicron/out/dendrite-stub/bin ~/Oxide/omicron/out/mgd/ root/opt/oxide/mgd /bin ~/Scripts
22
22
case Linux
23
23
set PKG_CONFIG_PATH " /usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/home/linuxbrew/.linuxbrew/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
24
24
if test -d ~/usr/local/Applications/android-studio/bin
You can’t perform that action at this time.
0 commit comments