home-config/fish/config.fish
ca201bd9f1ce2bc1e6b5eb5107bf3ffc764417b4
· 1.5 KB · 40 lines
raw
| 1 | if status is-login |
| 2 | eval "$(guix package --search-paths \ |
| 3 | -p ~/.config/guix/current \ |
| 4 | -p ~/.guix-profile \ |
| 5 | -p /run/current-system/profile)" |
| 6 | |
| 7 | fenv source /etc/profile |
| 8 | set -gx HOME_ENVIRONMENT $HOME/.guix-home |
| 9 | fenv source $HOME_ENVIRONMENT/setup-environment |
| 10 | fenv $HOME_ENVIRONMENT/on-first-login |
| 11 | fish_add_path -Pp ~/.local/bin |
| 12 | fish_add_path -Pp ~/.guix-home/profile/bin |
| 13 | fish_add_path -Pp /run/setuid-programs |
| 14 | fish_add_path -Pp ~/.nix-profile/bin |
| 15 | fish_add_path -Pp ~/.go/bin |
| 16 | set -gx GOPATH ~/.go |
| 17 | set -gx EDITOR nvim |
| 18 | set -gax --path XDG_DATA_DIRS ~/.nix-profile/share |
| 19 | # Bad |
| 20 | find ~/.config/fish/ -name "*tmp*" -exec rm {} + |
| 21 | end |
| 22 | if status is-interactive |
| 23 | set -gax --path XDG_DATA_DIRS ~/.local/share/flatpak/exports/share |
| 24 | # Commands to run in interactive sessions can go here |
| 25 | alias quit exit |
| 26 | alias cat "bat --paging=never" |
| 27 | alias ds "sudo -E guix system -L ~/.config/guix/modules reconfigure ~/.config/guix/$(prompt_hostname).scm" |
| 28 | alias dh "guix home -L ~/.config/guix/modules reconfigure ~/.config/guix/home-config/home-configuration.scm && home-manager switch" |
| 29 | alias gc "git -C ~/.config/guix add . && git -C ~/.config/guix commit && git -C ~/.config/guix push all" |
| 30 | alias cg "git -C ~/.config/guix pull" |
| 31 | alias cgh "git -C ~/.config/guix pull stationeryh main" |
| 32 | alias python "python3" |
| 33 | alias spt "spotify_player" |
| 34 | alias ls "ls -p --color=auto" |
| 35 | alias grep "grep --color=auto" |
| 36 | alias ll "ls -l" |
| 37 | |
| 38 | zoxide init --cmd cd fish | source |
| 39 | |
| 40 | end |