Iterm show hidden files12/13/2023 # that tool does not specify the colors, which I did by looking manually at # used BSD pattern ExGxFxDxB圎gEdxbxgxhxd on The following lines of my ~/.bashrc file include some old history of the colors and how I use to have other options. This goes in hand with the ls -color=auto shortcut to make sure that the colors are used (Mac: you might need brew install coreutils as described in this blog post). For example, do you want directories to be shown in blue and/or bold font while executable files are shown in red. You can change the colors of your terminal. Where ~/.inputrc file has the following contents: #Page up/page downĪs an added benefit, the up and down arrows will now have this improved behavior when you run R inside a terminal, although it’s limited to your current R history: actually, I guess that you could change your. Next I use the up arrow, and it only finds for me commands that start with cd /, including this long one.ĭid you like this? Well, add the following code to your ~/.bashrc file # Auto-complete command from history So I type cd / in the terminal window (without hitting enter). Lets say that I want to change directory to one of my recent projects. So far, this is the same as the default up arrow behavior. If you use the up arrow, you can navigate your command history. Lets say that you just requested a compute node with qrsh and you have an empty line. The following changes make it so that the up arrow searches only commands that start with exactly the letters you had already typed. Normally, the up and down arrow let you select previous commands from your bash history (up) or select one of your latest commands (down, after having used up). cdf - cd to the current Finder selection.The next change will save you a lot of time! Plus it goes nicely with the bash history changes we just made.pfd - Prints the path of the frontmost Finder window.ofd - Opens the current directory in a Finder window.It’s all the same functionality and can be found here. The osx plugin is now deprecated and has been renamed to macos. I honestly could do a whole post on this plugin. 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. zshrc, and you have to reopen the terminal or “source” it to refresh. 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. No need to switch over to your browser, just run the search from your terminal with the Imagine…you’re in the terminal and you need to google something. 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. Plugins =(git kubectl history emoji encode64 )Īs you type, you’ll see a suggested completion come up in a faded gray color.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |