move programs in modules such that base.nix il a basic configuration
All checks were successful
/ build-all (push) Successful in 1m37s

This commit is contained in:
ant 2025-09-27 11:32:20 +02:00
parent d43ece8ac4
commit 05bbe7463b
8 changed files with 162 additions and 174 deletions

View file

@ -15,25 +15,6 @@
functions = {
# use "e" to open the text editor. if e job is paused, return to it
e.body = ''
jobs -c | grep $EDITOR \
|| $EDITOR $argv \
&& fg 2>/dev/null; commandline -f repaint
'';
lfcd.body = ''
set tmp (mktemp)
# `command` is needed in case `lfcd` is aliased to `lf`
command lf -last-dir-path=$tmp $argv
if test -f "$tmp"
set dir (cat $tmp)
rm -f $tmp
if test -d "$dir"
if test "$dir" != (pwd)
cd $dir
end
end
end
'';
fish_prompt.body = ''
set -l last_pipestatus $pipestatus
set -lx __fish_last_status $status # Export for __fish_print_pipestatus.
@ -88,17 +69,11 @@
};
shellAliases = {
e = "$EDITOR";
ls = "ls -hN --color=auto --group-directories-first";
grep = "grep --color=auto";
diff = "diff --color=auto";
bt = "bluetuith";
hms = "nh home switch";
dev = "nix develop -c fish";
gparted = "nix-shell -p pkgs.gparted --run 'sudo -E gparted'";
ns = "nix-shell";
nsp = "nix shell nixpkgs#";
f = "lfcd";
sxiv = "nsxiv";
del = "trash -rf";
rsyncp = "rsync --info=progress2 --no-inc-recursive";
ffmpeg = "ffmpeg -hide_banner";
@ -113,17 +88,5 @@
gdb_ubsan = "gdb -tui -ex='break __ubsan::ScopedReport::~ScopedReport'";
gdb_msan = "gdb -tui -ex='break __sanitizer::Die'";
};
plugins = [
{
name = "fish-lf-icons";
src = pkgs.fetchFromGitHub {
owner = "joshmedeski";
repo = "fish-lf-icons";
rev = "d1c47b2088e0ffd95766b61d2455514274865b4f";
sha256 = "sha256-6po/PYvq4t0K8Jq5/t5hXPLn80iyl3Ymx2Whme/20kc=";
};
}
];
};
}