-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandy-ls.bash
38 lines (26 loc) · 1.01 KB
/
handy-ls.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Copyright (c) 2020. Robert LaMarca
# All files released under the GPL-2.0 License ( see LICENSE.txt )
# except where otherwise noted in their comments.
# Files released in this repository are not to be considered as a project, but merely
# a collection of files that may be used in their entirety or partially.
#
# ls -l
alias ll="ls -l"
# ls -la
alias la="ls -la"
# ls -la that sorts directories, files and then links
alias lsaod="ls -la | grep \"^d\" && ls -la | grep \"^-\" && ls -la | grep \"^l\""
# ls -l that sorts directories, files and then links
alias lsod="ls -l | grep \"^d\" && ls -la | grep \"^-\" && ls -la | grep \"^l\""
# show all directories
alias lsad="ls -la | grep \"^d\""
# show only visible directories
alias lsd="ls -l | grep \"^d\""
# show all files
alias lsaf="ls -la | grep \"^-\""
# show only visible files
alias lsf="ls -l | grep \"^-\""
# show only hidden files
alias lsh="ls -ad .*"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion