Skip to content

Commit

Permalink
update for config of iterm2
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 committed Jan 4, 2023
1 parent 571802c commit 26dc2d0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .chezmoiignore.d/common
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
README.md
Dockerfile
LICENSE

setup.sh
com.googlecode.iterm2.plist

install/
networks/
Expand Down
24 changes: 24 additions & 0 deletions dot_config/iterm2/symlink_com.googlecode.iterm2.plist.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{/*

~/.config/iterm/com.googlecode.iterm2.plist
{==============================================================================
iTerm2 macOS Terminal Emulator preferences file template.

To keep any modifications done inside iTerm2 in sync with this repo, this file
is parsed and turned into a symbolic link pointing to
`com.googlecode.iterm2.plist` when running `chezmoi apply`. The actual plist
file is not copied over to the user home directory.

See https://www.chezmoi.io/docs/how-to/

The linked file com.googlecode.iterm2.plist is loaded by iTerm2 when the `Load
preferences from a custom folder or URL` setting is enabled in
`iTerm2 → General → Preferences`.

See http://stratus3d.com/blog/2015/02/28/sync-iterm2-profile-with-dotfiles-repository/

*/ -}}

{{ .chezmoi.sourceDir }}/dot_config/iterm2/com.googlecode.iterm2.plist

{{- /* eof */ -}}
3 changes: 2 additions & 1 deletion install/macos/common/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function defaults_dock() {
defaults write com.apple.dock persistent-others -array ""

function dock_item() {
local app_file_path="$1"
printf '
<dict>
<key>tile-data</key>
Expand All @@ -52,7 +53,7 @@ function defaults_dock() {
<key>_CFURLStringType</key><integer>0</integer>
</dict>
</dict>
</dict>', "$1"
</dict>', "${app_file_path}"
}

defaults write com.apple.dock persistent-apps -array \
Expand Down

0 comments on commit 26dc2d0

Please sign in to comment.