1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat(fish): add take function

This commit is contained in:
Ryan Cao 2023-07-22 19:36:50 +08:00
parent 1f9574fbea
commit 97a380f28d
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
2 changed files with 12 additions and 1 deletions

View file

@ -1,2 +1,2 @@
switch:
darwin-rebuild switch --flake .
darwin-rebuild switch --flake . --show-trace

View file

@ -6,6 +6,17 @@ in {
programs.fish = {
enable = true;
inherit shellAbbrs shellAliases;
functions = {
take = ''
set dir $argv[1]
if [ -z "$dir" ]
echo "QHAR?!?!?!"
return 1
end
mkdir "$dir"
cd "$dir"
'';
};
};
home.file.".config/fish/conf.d" = {