mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-30 09:31:15 -03:00
Webconfig: Sort the prompt list
Otherwise this has filesystem order, which on my system is quite chaotic. An alternative would be to randomize the order so people see different prompts each time.
This commit is contained in:
@@ -1203,7 +1203,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
return None
|
||||
|
||||
def do_get_sample_prompts_list(self):
|
||||
paths = glob.iglob("sample_prompts/*.fish")
|
||||
paths = sorted(glob.iglob("sample_prompts/*.fish"))
|
||||
result = []
|
||||
try:
|
||||
pool = multiprocessing.pool.ThreadPool(processes=8)
|
||||
|
||||
Reference in New Issue
Block a user