home-config/fish/config.fish

f3ee8355e3b453fc14ac3d6b63fb7368798d66d7 · 1.7 KB · 42 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 set -gax --path PKG_CONFIG_PATH /run/current-system/profile/lib/pkgconfig
20 set -gax --path LD_LIBRARY_PATH /run/current-system/profile/lib
21 # Bad
22 find ~/.config/fish/ -name "*tmp*" -exec rm {} +
23 end
24 if status is-interactive
25 set -gax --path XDG_DATA_DIRS ~/.local/share/flatpak/exports/share
26 # Commands to run in interactive sessions can go here
27 alias quit exit
28 alias cat "bat --paging=never"
29 alias ds "sudo -E guix system -L ~/.config/guix/modules reconfigure ~/.config/guix/$(prompt_hostname).scm"
30 alias dh "guix home -L ~/.config/guix/modules reconfigure ~/.config/guix/home-config/home-configuration.scm && home-manager switch"
31 alias gc "git -C ~/.config/guix add . && git -C ~/.config/guix commit && git -C ~/.config/guix push all"
32 alias cg "git -C ~/.config/guix pull"
33 alias cgh "git -C ~/.config/guix pull stationeryh main"
34 alias python "python3"
35 alias spt "spotify_player"
36 alias ls "ls -p --color=auto"
37 alias grep "grep --color=auto"
38 alias ll "ls -l"
39
40 zoxide init --cmd cd fish | source
41
42 end