| hyperterm-dibdabs - Unique colored dot on the left of the tab is added for quick identification of commonly used tabs based on its title. | hyperterm-lastpass - LastPass plugin for autofilling passwords in Hyper. | hyperterm-paste - Pasting into terminal made safe and easy.
#Iterm new tab same directory windows#
| hyperterm-summon - Summon your Hyper windows with a system-wide hotkey. | hyper-sync-settings - Easy way to backup and restore Hyper settings to Github. | hyperterm-visor - Show/hide your Hyper terminal with a global hotkey & more. Hyperline - A status line at the bottom of your Hyper! | hypercwd - Open new tabs with the same directory as your current tab. Know of another Hyper package? Help add it! Productivity Like awesome-hyper? Reach out to and on Twitter and say hi! 👋 Contents Want to add your awesome Hyper package, theme, or resource? Make the change and open a pull request! Please read the contribution guidelines before contributing.Ĭheck out the official Hyper site, check out Vercel, and their interesting Hosting product, Now. You might also like awesome-node and awesome-npm, which both have CLI stuff you can use with Hyper! To finish setting all up, you should give both shell scripts execution permissions with chmod +x.A curated list of sweet Hyper packages, themes, and resources. PID=`ps -f | grep $TTY | head -n 1 | awk '' # Finds out the current working directory of the TTY whose name is passed as the first command The file pwd-tty has the following content: Please note that you must change the path of the AppleScript to whatever directory you’ve placed it into. Osascript '~/shell-config/osx-automation/Duplicate iTerm tab.scpt' # Runs the 'Duplicate iTerm tab' AppleScript, enabling iTerm 2 to run this AppleScript when a
The file duplicate-iterm-tab has the following content: If you don’t want to add them to the PATH, you can just change the AppleScript code, writing the absolute path to each script instead. I’ll keep them in ~/shell-config/bin, since files placed in there are by default in the PATH (according to how I’ve set up my Bash configuration).
#Iterm new tab same directory code#
The following AppleScript code should be written to the Duplicate iTerm tab.scpt file, and will get the working directory of the current iTerm tab and create a new tab, changing to that very same directory, and setting the same tab title (thus duplicating the tab you’ve selected before pressing ⌘ D): Notice that the command duplicate-iterm-tab is to be executed when sent to the terminal, so a line feed must be entered at the end. Since pressing ↩ in the dialog will apply changes, to enter a new line you must press ⌥ ↩ instead.įinally, click OK to create the new shortcut and then you’ll see the new shortcut in the Keys preference panel:Īn AppleScript that duplicates the iTerm tab in use This will open the shortcut addition dialog, where you’ll enter the keyboard shortcut (⌘ D), the action to trigger ( Send text), and the command to be sent to the terminal ( duplicate-iterm-tab) when the shortcut is triggered: To add a new global shortcut, just click on the + button.
Why doesn’t a terminal emulator have that shortcut to duplicate a terminal tab? iTerm 2 certainly doesn’t have one, but it does have a preference panel where you can add new keyboard shortcuts: Many applications have a ⌘ D shortcut that allows you to duplicate whatever document the application works with. Adding a new keyboard shortcut to iTerm 2 Or whatever other way you do this, it’s definitely a time waste.