Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- so() {
- if [[ "" == "$1" ]]
- then
- ls
- else
- if [[ -d "$1" ]]
- then
- cd "$1"
- else
- kappa=`file -i "$1"`
- if [[ "$kappa" == *text* ]]
- then
- vim "$1"
- elif [[ "$kappa" == *image* ]]
- then
- mirage "$1"
- else
- if [[ "c" == "$1" ]]
- then
- clear
- elif [[ "h" == "$1" ]]
- then
- cd ~
- else
- echo "I don't know how to handle this situation"
- fi
- fi
- fi
- fi
- }
- export so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement