Auto list directory content whenever working directory changed
fisher install dangh/auto-ls.fish
By default it will run ls -GF
whenever you change the working directory. You can change the command with variable auto_ls_command
.
For example, to show hidden files/directories by default:
set -U auto_ls_command 'ls -AGF'
By default it will only run ls
if there are less than 30 files in the directory. This behaviour is to prevent ls
hanging when cd
to a directory with a very large number of files.
To change the limit number, set the variable as:
set -U auto_ls_limit 100