Skip to content

Commit c6ff8af

Browse files
committed
more important changes
1 parent a86b56a commit c6ff8af

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/reader.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,19 @@ static int read_i() {
22642264
data->command_line_changed(&data->command_line);
22652265
wcstring_list_t argv(1, command);
22662266
event_fire_generic(L"fish_preexec", &argv);
2267-
command.append(L" | cowsay -n | cowsay -n");
2267+
2268+
const wcstring options[7] = {
2269+
L" | cowsay -n | lolcat",
2270+
L" | cowsay -f (ls /usr/local/Cellar/cowsay/3.04/share/cows/*.cow | gshuf -n 1)",
2271+
L" | figlet -f (ls /usr/local/Cellar/figlet/2.2.5/share/figlet/fonts/*.flf | gshuf -n 1)",
2272+
L" | cowsay -n | cowsay -n",
2273+
L" | figlet -f (ls /usr/local/Cellar/figlet/2.2.5/share/figlet/fonts/*.flf | gshuf -n 1) | cowsay -n",
2274+
L" | figlet -f (ls /usr/local/Cellar/figlet/2.2.5/share/figlet/fonts/*.flf | gshuf -n 1) | cowsay -n",
2275+
L" | lolcat"
2276+
};
2277+
2278+
command.append(
2279+
options[rand() % sizeof(options) / sizeof(options[0])] + (rand() % 2 == 1 ? L" | lolcat" : L""));
22682280
reader_run_command(parser, command);
22692281
event_fire_generic(L"fish_postexec", &argv);
22702282
// Allow any pending history items to be returned in the history array.

0 commit comments

Comments
 (0)