guix-dotfiles/home-config/fish/config.fish

44 lines
1.6 KiB
Fish
Raw Normal View History

2024-04-13 03:06:03 +00:00
if status is-login
eval "$(guix package --search-paths \
-p ~/.config/guix/current \
-p ~/.guix-profile \
-p /run/current-system/profile)"
2024-04-21 22:31:34 +00:00
fenv source /etc/profile
set -gx HOME_ENVIRONMENT $HOME/.guix-home
fenv source $HOME_ENVIRONMENT/setup-environment
fenv $HOME_ENVIRONMENT/on-first-login
2024-04-13 03:06:03 +00:00
fish_add_path -Pp ~/.local/bin
fish_add_path -Pp ~/.guix-home/profile/bin
fish_add_path -Pp /run/setuid-programs
fish_add_path -Pp ~/.nix-profile/bin
2024-09-10 19:34:53 +00:00
fish_add_path -Pp ~/.go/bin
set -gx GOPATH ~/.go
2024-04-13 03:06:03 +00:00
set -gx EDITOR nvim
2024-04-21 22:31:34 +00:00
set -gax --path XDG_DATA_DIRS ~/.nix-profile/share
2024-04-13 03:06:03 +00:00
# Bad
2024-04-21 22:31:34 +00:00
find ~/.config/fish/ -name "*tmp*" -exec rm {} +
2024-04-13 03:06:03 +00:00
end
if status is-interactive
2024-04-21 22:31:34 +00:00
set -gax --path XDG_DATA_DIRS ~/.local/share/flatpak/exports/share
2024-10-19 04:14:19 +00:00
set GPG_TTY $(tty)
export GPG_TTY
# Commands to run in interactive sessions can go here
alias quit exit
alias cat "bat --paging=never"
alias ds "sudo -E guix system -L ~/.config/guix/modules reconfigure ~/.config/guix/$(prompt_hostname).scm"
alias dh "guix home -L ~/.config/guix/modules reconfigure ~/.config/guix/home-config/home-configuration.scm && home-manager switch"
alias gc "git -C ~/.config/guix add . && git -C ~/.config/guix commit && git -C ~/.config/guix push all"
alias cg "git -C ~/.config/guix pull"
alias cgh "git -C ~/.config/guix pull stationeryh main"
2024-04-11 00:13:45 +00:00
alias python "python3"
alias spt "spotify_player"
alias ls "ls -p --color=auto"
alias grep "grep --color=auto"
alias ll "ls -l"
2024-04-13 03:16:49 +00:00
zoxide init --cmd cd fish | source
end