tag:blogger.com,1999:blog-5067904571139905755.post4068190369127674370..comments2024-01-13T05:08:20.724-05:00Comments on PataMetaData: Switching to Fish ShellAnonymoushttp://www.blogger.com/profile/13737038965630253900noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5067904571139905755.post-29499730935396086902014-10-11T02:36:42.152-04:002014-10-11T02:36:42.152-04:00Thanks! That's much faster than what I had bee...Thanks! That's much faster than what I had been doing. I guess I hadn't bothered to look at type's usage.Anonymoushttps://www.blogger.com/profile/13737038965630253900noreply@blogger.comtag:blogger.com,1999:blog-5067904571139905755.post-43311532230478427842014-10-10T15:03:28.189-04:002014-10-10T15:03:28.189-04:00There are a few ways to test whether a command exi...There are a few ways to test whether a command exists:<br />$ if type -t vim >/dev/null; echo "command exists"; else; echo "illegal"; end<br />$ type -t vim >/dev/null ; and echo "command exists" ; or echo "illegal"<br />$ if test -x /usr/bin/vim; echo "command exists"; else; echo "illegal"; end<br />Anonymousnoreply@blogger.com