Skip to content

Commit

Permalink
Better ll
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 4, 2024
1 parent 89963dc commit 59158fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ alias e="$EDITOR"
alias d="docker"
alias dr="docker run --rm -it"
alias de="docker exec -it"
alias ll="ls -lhv"

# Custom functions
alias hf="history_find"
Expand All @@ -101,6 +100,7 @@ alias gcl="go_clone"
alias bkp="create_backup"
alias ssht="ssh_multi"
alias flat="cat_flat"
alias ll="ls_ext"

# Traps
alias git="git_trap"
Expand All @@ -117,7 +117,17 @@ fi

################################################################################

function git_trap {
function ls_ext() {
if [[ $# -eq 0 ]] ; then
ls -lhv --color=always | sed 's/ -> / → /g'
else
ls -lhv --color=always "$@" | sed 's/ -> / → /g'
fi

return $?
}

function git_trap() {
if [[ "$1" == "release" ]] ; then
shift
git_release $*
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

################################################################################

VERSION="2.4.8"
VERSION="2.4.9"

################################################################################

Expand Down

0 comments on commit 59158fc

Please sign in to comment.