home-config/fish/config.fish
a8b7e972ead8df887f06537ccc017fe556f43fd3
· 1.2 KB · 32 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 | fish_add_path -Pp ~/.local/bin |
| 8 | fish_add_path -Pp ~/.guix-home/profile/bin |
| 9 | fish_add_path -Pp /run/setuid-programs |
| 10 | fish_add_path -Pp ~/.nix-profile/bin |
| 11 | set -gx EDITOR nvim |
| 12 | set -gax XDG_DATA_DIRS ~/.nix-profile/share |
| 13 | fenv source ~/.profile |
| 14 | # Bad |
| 15 | find ~/.config/fish/ -name "*tmp*" -exec {} + |
| 16 | end |
| 17 | if status is-interactive |
| 18 | # Commands to run in interactive sessions can go here |
| 19 | alias quit exit |
| 20 | alias cat "bat --paging=never" |
| 21 | alias ds "sudo -E guix system -L ~/.config/guix/modules reconfigure ~/.config/guix/$(prompt_hostname).scm" |
| 22 | alias dh "guix home -L ~/.config/guix/modules reconfigure ~/.config/guix/home-config/home-configuration.scm && home-manager switch" |
| 23 | alias gc "git -C ~/.config/guix add . && git -C ~/.config/guix commit && git -C ~/.config/guix push all" |
| 24 | alias cg "git -C ~/.config/guix pull" |
| 25 | alias cgh "git -C ~/.config/guix pull stationeryh main" |
| 26 | alias python "python3" |
| 27 | alias spt "spotify_player" |
| 28 | alias ls "ls -p --color=auto" |
| 29 | alias grep "grep --color=auto" |
| 30 | alias ll "ls -l" |
| 31 | |
| 32 | end |