mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
35 lines
1.3 KiB
Fish
35 lines
1.3 KiB
Fish
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
end
|
|
|
|
alias conf="z ~/.config"
|
|
alias nixos="z /etc/nixos"
|
|
alias store="z /nix/store"
|
|
alias rustenv="nix-shell -p pkg-config openssl sqlite --run fish" # run this command first if you have trouble with openssl or sqlite during compiling a rust project (more https://nixos.wiki/wiki/Rust#Building_Rust_crates_that_require_external_system_libraries)
|
|
alias nswitch="sudo nixos-rebuild switch --flake /etc/nixos"
|
|
alias nswitchu="sudo nixos-rebuild switch --flake /etc/nixos --upgrade --update-input nixpkgs --update-input rust-overlay --commit-lock-file"
|
|
alias ncsu="sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos"
|
|
alias nsgc="sudo nix-store --gc"
|
|
alias ncg="sudo nix-collect-garbage -d"
|
|
|
|
# if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]
|
|
# exec Hyprland
|
|
# end
|
|
|
|
set -gx EDITOR hx
|
|
set -gx VOLUME_STEP 5
|
|
set -gx BRIGHTNESS_STEP 5
|
|
|
|
set fish_vi_force_cursor
|
|
set fish_cursor_default block
|
|
set fish_cursor_insert line blink
|
|
set fish_cursor_visual underscore blink
|
|
|
|
set -Ux FZF_DEFAULT_OPTS "\
|
|
--color=bg+:#363a4f,bg:#24273a,spinner:#f4dbd6,hl:#ed8796 \
|
|
--color=fg:#cad3f5,header:#ed8796,info:#c6a0f6,pointer:#f4dbd6 \
|
|
--color=marker:#f4dbd6,fg+:#cad3f5,prompt:#c6a0f6,hl+:#ed8796"
|
|
|
|
starship init fish | source
|
|
zoxide init fish | source
|