-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: reorganize Rust development environment #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,14 +12,20 @@ | |
| if test (uname) = "Linux" | ||
| set -gx XDG_RUNTIME_DIR /run/user/(id -u) | ||
| end | ||
|
|
||
| # Go configuration | ||
| set -gx GOPATH $HOME/go | ||
|
|
||
| direnv hook fish | source | ||
| ''; | ||
| loginShellInit = '' | ||
| fish_add_path -p ~/.local/bin | ||
| fish_add_path -p ~/.bun/bin | ||
| fish_add_path -p ~/.cargo/bin | ||
| fish_add_path -p ~/.foundry/bin | ||
| fish_add_path -p ~/.nix-profile/bin | ||
| fish_add_path -p ~/go/bin | ||
| fish_add_path -p /nix/var/nix/profiles/default/bin | ||
| fish_add_path -p ~/.foundry/bin | ||
| fish_add_path -p /opt/homebrew/bin | ||
| fish_add_path -p /opt/homebrew/opt/postgresql@18/bin | ||
| fish_add_path -p /etc/profiles/per-user/${config.home.username}/bin | ||
|
|
@@ -31,9 +37,11 @@ | |
| set fish_theme dracula | ||
| fish_add_path -p ~/.local/bin | ||
| fish_add_path -p ~/.bun/bin | ||
| fish_add_path -p ~/.cargo/bin | ||
| fish_add_path -p ~/.foundry/bin | ||
| fish_add_path -p ~/.nix-profile/bin | ||
| fish_add_path -p ~/go/bin | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate PATH configuration: Prompt for Agent |
||
| fish_add_path -p /nix/var/nix/profiles/default/bin | ||
| fish_add_path -p ~/.foundry/bin | ||
| fish_add_path -p /opt/homebrew/bin | ||
| fish_add_path -p /opt/homebrew/opt/postgresql@18/bin | ||
| fish_add_path -p /etc/profiles/per-user/${config.home.username}/bin | ||
|
|
@@ -54,7 +62,6 @@ | |
| j = "jj"; | ||
| lzd = "lazydocker"; | ||
| lzg = "lazygit"; | ||
| sag = "_ssh_add_github"; | ||
| ta = "tmux new -A -s default"; | ||
| v = "nvim"; | ||
|
|
||
|
|
@@ -66,24 +73,25 @@ | |
| coxel = "_coxel_function"; | ||
| coxelh = "_coxelh_function"; | ||
| dev = "_dev_function"; | ||
| ocxe = "_ocxe_function"; | ||
| ocxeh = "_ocxeh_function"; | ||
| gco = "_gco_function"; | ||
| grco = "_grco_function"; | ||
| grcr = "_grcr_function"; | ||
| kyber = "_kyber_function"; | ||
| kyberd = "_kyberd_function"; | ||
| kyberm = "_kyberm_function"; | ||
| zdo = "_zdo_function"; | ||
| zmo = "_zmo_function"; | ||
| fch = "_fzf_cmd_history --allow-execute"; | ||
| fdp = "_fzf_directory_picker --allow-cd --prompt-name Projects ~/"; | ||
| ffp = "_fzf_file_picker --allow-open-in-editor --prompt-name Files"; | ||
| ffpf = "_fzf_file_picker --allow-open-in-editor --show-hidden-files --prompt-name Files+"; | ||
| fgb = "_fzf_git_branch"; | ||
| fgw = "_fzf_git_worktree"; | ||
| fhq = "_fzf_ghq_picker"; | ||
| gco = "_gco_function"; | ||
| grco = "_grco_function"; | ||
| grcr = "_grcr_function"; | ||
| kyber = "_kyber_function"; | ||
| kyberd = "_kyberd_function"; | ||
| kyberm = "_kyberm_function"; | ||
| ocxe = "_ocxe_function"; | ||
| ocxeh = "_ocxeh_function"; | ||
| sag = "_ssh_add_github"; | ||
| shortcuts = "_fish_shortcuts"; | ||
| zdo = "_zdo_function"; | ||
| zmo = "_zmo_function"; | ||
| }; | ||
| plugins = [ | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| { pkgs, ... }: | ||||||
| { | ||||||
| home.packages = [ pkgs.lazydocker ]; | ||||||
| home.packages = with pkgs; [ pkgs.lazydocker ]; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
| home.packages = with pkgs; [ pkgs.lazydocker ]; | |
| home.packages = with pkgs; [ lazydocker ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| { pkgs, ... }: | ||
| { | ||
| programs.fish.interactiveShellInit = '' | ||
| fish_add_path -p ~/.cargo/bin/ | ||
| ''; | ||
| home.packages = with pkgs; [ | ||
| rustup | ||
| ]; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate PATH configuration:
~/.cargo/binis being added in bothloginShellInit(line 24) andinteractiveShellInit(line 40). SinceloginShellInitruns for login shells and its PATH changes persist to interactive shells, adding it again ininteractiveShellInitis redundant and causes unnecessary PATH pollution. Consider keeping it only inloginShellInitor document why both are needed.Agent: 🏛 Architecture •
• 
Prompt for Agent