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:
parent
1f9574fbea
commit
97a380f28d
2 changed files with 12 additions and 1 deletions
2
justfile
2
justfile
|
|
@ -1,2 +1,2 @@
|
||||||
switch:
|
switch:
|
||||||
darwin-rebuild switch --flake .
|
darwin-rebuild switch --flake . --show-trace
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,17 @@ in {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit shellAbbrs shellAliases;
|
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" = {
|
home.file.".config/fish/conf.d" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue