File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2264,7 +2264,19 @@ static int read_i() {
2264
2264
data->command_line_changed (&data->command_line );
2265
2265
wcstring_list_t argv (1 , command);
2266
2266
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" " ));
2268
2280
reader_run_command (parser, command);
2269
2281
event_fire_generic (L" fish_postexec" , &argv);
2270
2282
// Allow any pending history items to be returned in the history array.
You can’t perform that action at this time.
0 commit comments