#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/follow follow-cmd () { local cmd=$1 ls -l $(readlink -f $(which $cmd)) } alias follow=follow-cmd follow-file () { local f=$1 local path=$(readlink -f -n $f) local dir=$(dirname $path) cd $dir }