We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e824877 commit 54f10eeCopy full SHA for 54f10ee
custom-completions/lftp/lftp-completions.nu
@@ -73,7 +73,8 @@ module lftp-completion-utils {
73
74
export def get-bookmark-sites []: nothing -> table<value: string, description: string> {
75
const FILE_PATH = '~/.local/share/lftp/bookmarks' | path expand
76
- let sites = open --raw $FILE_PATH | lines | split column -n 2 -r \s+ value description
+ let sites = try { open --raw $FILE_PATH | lines } catch { [] }
77
+ | split column -n 2 -r \s+ value description
78
$sites | update value { $"bm:($in)" }
79
}
80
0 commit comments