Skip to content

Commit 17bf38f

Browse files
eshapardpimterry
authored andcommitted
Make ls ignore vim backup files
In case user has vim set up to create backup files in the current directory, make the ls command ignore backup files (ending in '~' by default).
1 parent 82db972 commit 17bf38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ without_notes_dir() {
3131
}
3232

3333
ls_notes() {
34-
local ls_output=$(ls -p "$notes_dir/$*" 2>&1)
34+
local ls_output=$(ls -p "$notes_dir/$*" -I "*~" 2>&1)
3535
local ls_result=$?
3636
local formatted_output
3737

0 commit comments

Comments
 (0)