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
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue