im lazy
This commit is contained in:
parent
e7fdc3af6b
commit
d5e36b8df8
11 changed files with 441 additions and 105 deletions
|
|
@ -20,18 +20,34 @@
|
|||
# completions.enable = true;
|
||||
# };
|
||||
|
||||
interactiveShellInit = ''
|
||||
interactiveShellInit = let
|
||||
greetings =
|
||||
[
|
||||
"Welcome weary traveller to my shop"
|
||||
"It's dangerous to go alone! Take this."
|
||||
"Do butterflies cry when they're sad?"
|
||||
"I hope they do"
|
||||
"I think Alice is lost..."
|
||||
|
||||
"Something wicked this way comes"
|
||||
"May your L's be many... and your bitches few"
|
||||
|
||||
"What a horrible night to have a curse."
|
||||
"The ancient spirits of light and dark have been released."
|
||||
"The god of the stars rejects your offering. The ritual can only be performed at night."
|
||||
"You should have just died..."
|
||||
"Supreme Witch, Calamitas has killed every player!"
|
||||
]
|
||||
|> map (x: "\"${x}\"")
|
||||
|> builtins.concatStringsSep " ";
|
||||
in ''
|
||||
# add dotnet completions if it exists (ie we're in a virtual environment)
|
||||
if type -q dotnet
|
||||
complete -f -c dotnet -a "(dotnet complete (commandline -cp))"
|
||||
end
|
||||
|
||||
function rand_greet
|
||||
set weary "Welcome weary traveller to my shop"
|
||||
set alone "It's dangerous to go alone! Take this."
|
||||
set sad "Do butterflies cry when they're sad?"
|
||||
set alice "I think Alice is lost..."
|
||||
set greetings "$weary" "$alone" "$sad" "$alice"
|
||||
set greetings ${greetings}
|
||||
echo -n $greetings[(random 1 (count $greetings))]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue