Say your videos folder is "/home/user/Videos/Movies/" to make an alias to put you into that directory with one word, you'd add this to your .zshrc file: alias movies="cd /home/user/Videos/Movies/"
including the quotes, remember to substitute your username. Note that if any of your folder names have upper-case characters you'll need to enter them accordingly. Add as many aliases as you want; some examples can be found here in the section titled 'Advanced .zshrc'. Then try them out for the above you'd just type 'movies' and it would take you to the directory you specified in the alias. Jump for more.
Here is a link to a sample .zshrc file. And here you can find a plethora of common and not-so-common linux commands.
Here is a link to a sample .zshrc file. And here you can find a plethora of common and not-so-common linux commands.
Once you get used to those, it's time to start using them for practical things. Like launching web-browsers, and watching videos. All without touching the mouse.
Depending on which video player you've made nice with, you'll need a different command to watch a video with it. If you have mplayer, first cd to the directory where your movies are, then do "mplayer somefile.avi &!" Hint: the &! isn't needed but it disconnects the process from your terminal freeing it up for some more keyboarding.
Depending on which video player you've made nice with, you'll need a different command to watch a video with it. If you have mplayer, first cd to the directory where your movies are, then do "mplayer somefile.avi &!" Hint: the &! isn't needed but it disconnects the process from your terminal freeing it up for some more keyboarding.
No comments:
Post a Comment