-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove duplicate Homebrew in PATH * Add more detail for how to install the iTerm2 config files
- Loading branch information
Showing
3 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This won't work in GNU Make 3.81, which is what ships with macOS. | ||
# From https://brew.sh | ||
# shellcheck disable=SC2016 | ||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
|
||
# After you install Homebrewk, it tells you to run something like this to add it to PATH. | ||
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "$HOME/.bash_profile.plugins" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
## iTerm2 hex codes | ||
# iTerm2 Profile Configuration | ||
|
||
## Installing the profile | ||
|
||
First: | ||
|
||
```sh | ||
cp Profiles.json ~/Library/Application\ Support/iTerm2/DynamicProfiles | ||
``` | ||
|
||
Under **Preferences** in iTerm2, select `Brian's Profile` and click **Other Actions...** -> **Set as Default**. | ||
|
||
Then under **Keys** -> **Key Mappings** -> **Presets...**, click **Import**. | ||
Navigate to this directory and open `keys.itermkeymap`. | ||
|
||
Once the key map has gone into effect, you should be able to: | ||
- Move the cursor to the previous/next word with Option+Left and Option+Right | ||
- Move the cursor to the beginning/end of the line with Command+Left and Command+Right | ||
- Delete the last word with Option+Delete | ||
- Delete the line with Command+Delete | ||
|
||
## References | ||
|
||
- [iterm - Understanding "sending hex code" - Ask Different](https://apple.stackexchange.com/questions/265108/understanding-sending-hex-code) | ||
- [GNU Readline Library](https://tiswww.cwru.edu/php/chet/readline/readline.html) | ||
- [Where do I find a list of terminal key codes to remap shortcuts in bash? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/76566/where-do-i-find-a-list-of-terminal-key-codes-to-remap-shortcuts-in-bash) | ||
- [Mac OS X, iTerm and the meta key | Think In Geek](https://thinkingeek.com/2012/11/17/mac-os-x-iterm-meta-key/) | ||
- [Mac OS X, iTerm and the meta key | Think In Geek](https://thinkingeek.com/2012/11/17/mac-os-x-iterm-meta-key/) |