diff --git a/.config/shell/arch b/.config/shell/arch index 6b9669f..5379bb5 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -1,5 +1,7 @@ which pacman >/dev/null || return 0 +alias dragon='dragon-drag-and-drop' + # Arch aliases alias pac='noglob sudo pacman' alias pacs='pac -Syu --needed' diff --git a/.config/shell/functions b/.config/shell/functions index 232d201..53d726c 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -15,7 +15,7 @@ which lsb_release >/dev/null && export DIST=$(lsb_release --id | cut -d' ' -f2) alias info='info --vi-keys' unalias rd rd() { - test -d "$1" && find "$1" -type d -empty -delete || rm "$@" + test -d "$1" && find "$1" -type d -empty -printf "Removing %p\n" -delete || rm "$@" } rr() { mv "$@" /tmp } diff --git a/.local/bin/b b/.local/bin/b index 88733a6..ad89cb2 100755 --- a/.local/bin/b +++ b/.local/bin/b @@ -3,8 +3,9 @@ for last; do true; done last=${last:-.} file "$last" | grep -v --color=never directory +stat -c 'Permissions: %A, Created: %.10w, Modified %.10y, Size: %s' "${@:-$last}" case "$(file --dereference --mime "$last")" in - *inode/directory*) ls -l --color=auto --human-readable --group-directories-first --file-type --dereference-command-line --all --reverse "$@";; + *inode/directory*) ls -l --color=auto --human-readable --group-directories-first --file-type --dereference-command-line --almost-all "$@";; *binary) ;; *) $(test -f "$last" -a ! -r "$last") bat --style header "$@";; esac diff --git a/.zprofile b/.zprofile index f48c46f..419d550 100644 --- a/.zprofile +++ b/.zprofile @@ -31,7 +31,7 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS="true" export FZF_DEFAULT_OPTS='--select-1 --exit-0 --tiebreak=end,length --history=/var/tmp/fzf-history --ansi --bind="alt-enter:execute(test -O {} && $EDITOR {} || sudoedit {}),del:execute(gio trash {}),change:top,left-click:execute(xdg-open {})"' FD_BASE="fd --hidden --color=always --no-ignore-vcs" export FZF_DEFAULT_COMMAND="$FD_BASE --type file" -export FZF_CTRL_T_COMMAND="$FD_BASE -d 4" +export FZF_CTRL_T_COMMAND="$FD_BASE -d 7" # ctest export CTEST_PROGRESS_OUTPUT=1 export CTEST_OUTPUT_ON_FAILURE=1