commit f13487275569a59c4364bf5bea103f567448c217
parent 6fba1843f0bb73ccd77d55c0575797e910b2b475
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 12 Aug 2019 09:56:51 +0200
commonprofile: fix nfiles alias
Former-commit-id: 770538102ad06127c6ff817e6d04955dbf392e8a
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/commonprofile b/shell/commonprofile
@@ -114,7 +114,7 @@ alias wheredef='type -a' # Where is a fun
alias lsblk="lsblk -o NAME,LABEL,PARTLABEL,TYPE,FSTYPE,SIZE,MOUNTPOINT,STATE"
alias rmcolors="sed \"s,\x1B\[[0-9;]*[a-zA-Z],,g\"" # Remove ANSI color codes from text
alias bc="bc -ql" # Preferred 'bc' implementation
-alias nfiles="expr `ls -l | wc -l ` - 1" # Count the number of files in the directory
+alias nfiles="expr \`ls -l | wc -l | xargs echo\` - 1" # Count the number of files in the directory
# }}}
# Aliases (Mac UI) {{{