2024-12-20 13:11:42 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-10-24 16:50:52 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
neofetch
|
|
|
|
];
|
2024-10-12 19:14:54 +00:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
interactiveShellInit = ''
|
|
|
|
function fish_greeting
|
2024-11-13 19:09:11 +00:00
|
|
|
if test -z $DEVSHELL_NIX;
|
|
|
|
echo The time is (set_color purple; date +%T; set_color purple)
|
|
|
|
if test -z $SSH_CLIENT;
|
|
|
|
fastfetch
|
|
|
|
else
|
|
|
|
neofetch
|
|
|
|
end
|
2024-10-12 19:14:54 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
"ls" = "eza -l -a --group-directories-first --icons";
|
|
|
|
"grep" = "rg -p";
|
|
|
|
"rg" = "rg -p";
|
|
|
|
|
|
|
|
"cp" = "cp -rv";
|
|
|
|
|
|
|
|
":q" = "exit";
|
|
|
|
":qa" = "pkill fish";
|
|
|
|
".." = "z ..";
|
|
|
|
".2" = "z ../..";
|
|
|
|
".3" = "z ../../..";
|
|
|
|
".4" = "z ../../../..";
|
|
|
|
".5" = "z ../../../../..";
|
|
|
|
".r" = "z /";
|
|
|
|
".h" = "z ~";
|
|
|
|
".c" = "z ~/.config/";
|
|
|
|
".a" = "z ~/.config/ags/";
|
|
|
|
".d" = "z ~/Documents/";
|
|
|
|
".C" = "z ~/Documents/code/";
|
|
|
|
".D" = "z ~/Downloads/";
|
|
|
|
".p" = "z ~/Pictures/";
|
|
|
|
|
|
|
|
# git
|
|
|
|
"gc" = "git clone";
|
|
|
|
"gp" = "git push";
|
|
|
|
"ga" = "git add";
|
|
|
|
"gcm" = "git commit -m";
|
|
|
|
|
|
|
|
"fetch" = "clear ; fastfetch --logo ~/Downloads/gay.png --logo-width 32";
|
|
|
|
"hvim" = "z ~/.config/hypr/ ; nvim ; z";
|
|
|
|
"fvim" = "nvim ~/.config/fish/config.fish";
|
|
|
|
"se" = "sudoedit";
|
|
|
|
"vim" = "nvim";
|
|
|
|
"nvide" = "env -u WAYLAND_DISPLAY neovide --multigrid";
|
|
|
|
"transcat" = "queercat -b -f 1 -v 0.45 -h 0.45";
|
|
|
|
"clock" = "tty-clock -s -C 5 -D -c -b";
|
|
|
|
};
|
|
|
|
|
|
|
|
functions = {
|
2024-11-13 19:09:11 +00:00
|
|
|
os-age = ''
|
2024-12-15 00:32:33 +00:00
|
|
|
stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}'
|
2024-11-13 19:09:11 +00:00
|
|
|
'';
|
|
|
|
|
2024-12-01 11:23:21 +00:00
|
|
|
build-iso = ''
|
2024-12-20 13:11:42 +00:00
|
|
|
cd ~/.config/nixos
|
|
|
|
nix build .#nixosConfigurations.epimetheus.config.system.build.isoImage
|
2024-12-01 11:23:21 +00:00
|
|
|
'';
|
|
|
|
|
2024-10-12 19:14:54 +00:00
|
|
|
# Credit for these 3
|
|
|
|
# https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn
|
|
|
|
disks = ''
|
2024-12-15 00:32:33 +00:00
|
|
|
lsblk -o NAME,MOUNTPOINT,FSTYPE,FSUSE%,SIZE
|
2024-10-12 19:14:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
gr = ''
|
2024-12-15 00:32:33 +00:00
|
|
|
set GROOT (git rev-parse --show-toplevel 2>/dev/null); and cd $GROOT; or return $argv
|
2024-10-12 19:14:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
mkcd = ''
|
2024-12-15 00:32:33 +00:00
|
|
|
mkdir -p -- $argv[1] && cd $argv; or return $status
|
2024-10-12 19:14:54 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
atuin = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|