Created
September 21, 2016 04:58
-
-
Save zaltoprofen/c10e13e1f2f70035f1dcca28e4426094 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function command_not_found_handler() { | |
res=$(echo -n $0 | tr -d 'ls') | |
if [ -z "$res" ]; then | |
shift 1 | |
ls $@ | |
return 0 | |
fi | |
return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment