dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0d06095f124a4c0803c466e74f39a6be16f6d1ab
parent 5aa8a390e0442001f96760e02e8c6a2b021c26b8
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Thu,  5 Nov 2020 14:10:37 +0100

shell: improve nls alias

Former-commit-id: e2239645d40a49dc48477fb18ffa3d1888c878f6
Diffstat:
Mshell/functions | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/functions b/shell/functions @@ -7,7 +7,7 @@ rmempty() { find "${1-.}" -type d -empty -depth -delete; } # remove hr() { : $((i=0)); while [ $((i<$(tput cols))) -ne 0 ]; do printf "#"; _=$((i=i+1)); done; echo; } # insert a <hr> in the terminal vimq() { vim -q <(eval "$(fc -nl -1)"); } # load results of last command (often ag) in vim quickfix. eval necessary to handle escaped quotes. gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@"; } # Access global pip while using virtualenvs -nls() { expr `ls -l | wc -l | xargs echo` - 1; } # Count the number of files in the directory +nls() { printf $((`ls -l | wc -l | xargs echo` - 1)); } # Count the number of files in the directory reload-completions() { rm ~/.zcompdump && compinit; } zp() { z -l "$@" | awk -F' ' 'END {printf $2}'; } # Get the result of a "z" comman reload() {