mirror of
https://github.com/blahai/nyx.git
synced 2025-06-16 19:47:00 -04:00
too much shit idek anymore
This commit is contained in:
parent
14843ef945
commit
bc82345beb
63 changed files with 1759 additions and 346 deletions
5
home/pingu/packages/cli/default.nix
Normal file
5
home/pingu/packages/cli/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./shell
|
||||
];
|
||||
}
|
5
home/pingu/packages/cli/shell/default.nix
Normal file
5
home/pingu/packages/cli/shell/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./fish.nix
|
||||
];
|
||||
}
|
96
home/pingu/packages/cli/shell/fish.nix
Normal file
96
home/pingu/packages/cli/shell/fish.nix
Normal file
|
@ -0,0 +1,96 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
neofetch
|
||||
];
|
||||
programs = mkIf osConfig.olympus.programs.fish.enable {
|
||||
fish = {
|
||||
enable = true;
|
||||
|
||||
interactiveShellInit = ''
|
||||
function fish_greeting
|
||||
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
|
||||
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/";
|
||||
".n" = "z ~/.config/nixos/";
|
||||
".d" = "z ~/Documents/";
|
||||
".C" = "z ~/Documents/code/";
|
||||
".D" = "z ~/Downloads/";
|
||||
".p" = "z ~/Pictures/";
|
||||
|
||||
# git
|
||||
"gc" = "git clone";
|
||||
"gp" = "git push";
|
||||
"ga" = "git add";
|
||||
"gan" = "git add -N .";
|
||||
"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 = {
|
||||
os-age = ''
|
||||
stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}'
|
||||
'';
|
||||
|
||||
build-iso = ''
|
||||
cd ~/.config/nixos
|
||||
nix build .#nixosConfigurations.epimetheus.config.system.build.isoImage
|
||||
'';
|
||||
|
||||
# Credit for these 3
|
||||
# https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn
|
||||
disks = ''
|
||||
lsblk -o NAME,MOUNTPOINT,FSTYPE,FSUSE%,SIZE
|
||||
'';
|
||||
|
||||
gr = ''
|
||||
set GROOT (git rev-parse --show-toplevel 2>/dev/null); and cd $GROOT; or return $argv
|
||||
'';
|
||||
|
||||
mkcd = ''
|
||||
mkdir -p -- $argv[1] && cd $argv; or return $status
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue