![]() cdf - cd to the current Finder selection.pfd - Prints the path of the frontmost Finder window.ofd - Opens the current directory in a Finder window There are at least two places where iTerm.It’s all the same functionality and can be found here. ![]() The osx plugin is now deprecated and has been renamed to macos. On Windows, you can do this from the iew tab. I honestly could do a whole post on this plugin. Therefore, it will not appear in the file explorer unless you have explicitly set it to show hidden folders. This plugin has a number of neat capabilities, but I mainly use it to pretty print json.įor you Mac users, don’t miss these. Hsi - same as above but case insensitive.ĭon’t you hate to make an api call or curl request and return a bunch of jumbled json? This plugin makes it as simple as a few keystrokes to search for past commands. The History command on any Unix system will show us a long list of commands that we have run in the past.Īnd if we want to recall a command from last week that we used, we grep it. Well now just type src and hit enter to refresh the zsh session. ls -A The only difference here is that you won't see the. zshrc, and you have to reopen the terminal or “source” it to refresh. You can display hidden files along with other files using the -a option of the ls command: ls -a There is another way to show hidden files with the ls command. You can run the command “exec zsh” instead. See below how efficient the dirhistory plugin is. And alt+up puts you in the parent directory. Alt+Right reverts that (moves you forward). But you will.Īlt+Left takes you into the previous directory you were in. I know, I know… you can’t think of a specific scenario where you need this at the moment. You can get ahead of the game now with the copyfile plugin.Ĭopybuffer is a plugin that allows you to copy the text currently typed in the command line. It’s a capability you don’t know you need until you need it. Then cd paste that bad boy back in.Ĭopy the contents of a file to your clipboard. You don’t want to have to go back out and re-input that long path over again.Ĭopydir plugin to copy the path to your current directory to the clipboard.Ĭopy it. Sometimes you are deep in a folder and remember that you have to go back to update another file in the parent. To get started, click the 'Finder' app on the Mac dock. No need to switch over to your browser, just run the search from your terminal with the Using Finder to view hidden files Using 'Finder' is the easiest way to uncover hidden files. Bugs / Problems: - does not open files when vim instance is in insert mode - vim instances running e.g. If there is already a vim instance running, files are opened in it. ![]() Imagine…you’re in the terminal and you need to google something. Save and set as default for opening files: Multiple files are opened in vim tabs. The shortcut is to hit the escape key twice. Well, the sudo plugin takes what you just typed and adds a sudo at the beginning for you. You know when you type in a command that fails because you didnt run sudo? Either you have to retype it with sudo at the front or hit the up arrow and then arrow back to the beginning of the sentence? Note: This is the only plugin that requires you to actually install it first. I could honestly NOT survive anymore without the Zsh Autosuggestions plugin. If you hit tab, it will list more suggestions below it. If you hit the right arrow key, it will fill in the suggestion. ![]() Using /opt is thus no less safe than using /usr/local, and it's generally preferred over using a combination like /usr/local/opt that doesn't get the distinction.Plugins =(git kubectl history emoji encode64 )Īs you type, you’ll see a suggested completion come up in a faded gray color. They have slightly different purposes, but the difference is subtle (the full description is answered here if you're interested). You can use sudo chown -R /opt/foldername username (where username is your username, if you don't know your username you can type whoami on the command line to find out) to claim ownership of the folder and everything that it contains if you lack write access.Įdit: because there was some confusion I'm pointing out here that /opt is as much a standard in UNIX-derived systems as /usr/local. The first form will access a folder off the root, the second will access a folder within your home folder.ĭepending on how it was set up it may or may not have provided you with write access. opt folder is not apparently used in OSX instead /usr/local, for example, homebrew apparently uses /usr/local/opt instead of /opt. Also run chmod 777 on the folder if you need other non-admin programs to write to it. Based on your description, use /opt/foldername on the command line instead of ~/opt/foldername. Open a terminal, run sudo su to get a root prompt, then run open / to open Finder or mkdir /opt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |