![]() Subsequently we invoke the thunkmiddleware, which means your middleware can next thunks.Ī custom reducer for the ui, sessions or termgroups state shape. Invoked when a plugin is first loaded or subsequently reloaded in each window.Ī custom Redux middleware that can intercept any action. If a plugin reloads, it's called again and the menu is refreshed.Īllows you to decorate Electron's BrowserWindow options when a new window is created. Invoked with the Electron's Menu template. Allows you to decorate the user's environment by returning a modified environment object. Useful for themeing or custom parameters for your plugin. Allows you to decorate the user's configuration. Invoked when a plugin is removed by the user. If a plugin reloads, it's invoked again with the existing windows. If a plugin reloads, it's invoked again with the existing app. Your module has to expose at least one of these methods: You can find additional details about plugin development in the Hyper repository. The only knowledge that is therefore required to successfully extend Hyper is that of its underlying open source libraries. Instead of exposing a custom API method or parameter for every possible customization point, we allow you to intercept and compose every bit of functionality! The extension system is designed around composition of the APIs we use to build the terminal: React components and Redux actions. Available options are: true, false, "left"Įxtensions are universal Node.js modules loaded by both Electron and the renderer process. Available options are: true, falseĬhange the position/visibility of the window controls. If true, Hyper will be set as the default protocol client for SSHĬhange the behaviour of modifier keys to act as meta keyĬhange the visibility of the hamburger menu. If true, on right click selected text will be copied or pasted if no selection is present (true by default on Windows) If true, selected text will automatically be copied to the clipboard The number of rows to be persisted in terminal buffer for scrolling The default width/height in pixels of a new window The names of the keys represent the "ANSI 16", which can all be seen in the default config.Ī path to a custom shell to run when Hyper starts a new sessionĪn object of environment variables to set before launching shell hyper.js and add it to plugins module.exports = Ī list of overrides for the color palette. We encourage everyone to include hyper in the keywordsfield in package.json. ExtensionsĮxtensions are available on npm. In the future, we anticipate the community will come up with innovative additions to enhance what could be the simplest, most powerful and well-tested interface for productivity. In the beginning, our focus will be primarily around speed, stability and the development of the correct API for extension authors. One drastic alternative would be to migrate from Bash to an alternate shell like Fish or, in the future, the Next Generation Shell (NGS).The goal of the project is to create a beautiful and extensible experience for command-line interface users, built on open web standards. It has great tab and pane management accessible via both keyboard and mouse, and some subtle quality of life features.įor example, if you ssh somewhere, it sets the tab title to the hostname of the remote machine, or the name of the local directory. ITerm2 is my terminal of choice on the Mac. This makes it easy to transfer your command line configuration to a new primary machine. I use mackup together with Dropbox to keep my bash and other command line configuration files backed up. This configuration change has to be done per user per machine. ![]() In order for your configuration change to take effect, you will need to reload the configuration in all your open terminal sessions: source ~/.bash_profile # After each command, append to the history fileĮxport PROMPT_COMMAND="$history -a history -c history -r" # When the shell exits, append to the history file # Maximum number of history lines on disk Once you have it open, add these lines at the end: # Maximum number of history lines in memory ![]() Open up your ~/.bash_profile configuration file in an editor of your choice such as nano. It’s actually fairly straightforward to preserve the history. Is it possible to configure the terminal to preserve bash history? ![]() By default, the last terminal session to close trashes the bash history of all the other sessions. I typically have multiple tabs with multiple terminal panes open in iTerm2, often with multiple ssh sessions running. I use the bash command line on my Mac a lot. ![]()
0 Comments
Leave a Reply. |