diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..37a95f0e Binary files /dev/null and b/.DS_Store differ diff --git a/.zshrc b/.zshrc index 39527dcc..7c3a0285 100644 --- a/.zshrc +++ b/.zshrc @@ -3,3 +3,5 @@ source $HOME/.dotfiles/zsh_init.sh source $HOME/.dotfiles/aliases.sh source $HOME/.dotfiles/sources.sh source $HOME/.dotfiles/home.sh + +test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh" diff --git a/synced/Profiles.json b/synced/Profiles.json index 9fc92a25..68839e14 100644 --- a/synced/Profiles.json +++ b/synced/Profiles.json @@ -1,44 +1,36 @@ { "Profiles": [ { - "Use Non-ASCII Font": false, - "Tags": [], + "Ansi 6 Color": { + "Red Component": 0.16470588235294117, + "Color Space": "sRGB", + "Blue Component": 0.59607843137254901, + "Green Component": 0.63137254901960782 + }, + "Tags": [ + "Dynamic" + ], "Ansi 12 Color": { "Red Component": 0.51372549019607838, "Color Space": "sRGB", "Blue Component": 0.58823529411764708, "Green Component": 0.58039215686274515 }, - "Ansi 7 Color": { - "Red Component": 0.93333333333333335, - "Color Space": "sRGB", - "Blue Component": 0.83529411764705885, - "Green Component": 0.90980392156862744 - }, - "Ansi 8 Color": { - "Red Component": 0, - "Color Space": "sRGB", - "Blue Component": 0.21176470588235294, - "Green Component": 0.16862745098039217 - }, + "Horizontal Spacing": 1, + "Normal Font": "Monaco 12", "Bold Color": { "Red Component": 0.57647058823529407, "Color Space": "sRGB", "Blue Component": 0.63137254901960782, "Green Component": 0.63137254901960782 }, - "Ansi 9 Color": { - "Red Component": 0.79607843137254897, - "Color Space": "sRGB", - "Blue Component": 0.086274509803921567, - "Green Component": 0.29411764705882354 - }, "Ansi 3 Color": { "Red Component": 0.70980392156862748, "Color Space": "sRGB", "Blue Component": 0, "Green Component": 0.53725490196078429 }, + "Custom Directory": "No", "Ansi 5 Color": { "Red Component": 0.82745098039215681, "Color Space": "sRGB", @@ -81,6 +73,9 @@ "Blue Component": 0.58823529411764708, "Green Component": 0.58039215686274515 }, + "Bound Hosts": [ + "*" + ], "Working Directory": "\/Users\/chen", "Blinking Cursor": false, "Disable Window Resizing": true, @@ -89,6 +84,7 @@ "BM Growl": true, "Command": "", "Description": "Default", + "Dynamic Profile Filename": "\/Users\/chen\/Library\/Application Support\/iTerm2\/DynamicProfiles\/Profiles.json", "Mouse Reporting": true, "Screen": -1, "Selection Color": { @@ -338,6 +334,8 @@ "Blue Component": 0.58823529411764708, "Green Component": 0.58039215686274515 }, + "Transparency": 0, + "Guid": "650b63bd-771b-47fd-b209-020a5fc9bc66", "Ansi 0 Color": { "Red Component": 0.027450980392156862, "Color Space": "sRGB", @@ -350,23 +348,12 @@ "Blue Component": 0.18431372549019609, "Green Component": 0.19607843137254902 }, - "Horizontal Spacing": 1, - "Custom Directory": "No", - "Transparency": 0, - "Guid": "650b63bd-771b-47fd-b209-020a5fc9bc66", - "Ansi 6 Color": { - "Red Component": 0.16470588235294117, - "Color Space": "sRGB", - "Blue Component": 0.59607843137254901, - "Green Component": 0.63137254901960782 - }, "Ansi 2 Color": { "Red Component": 0.52156862745098043, "Color Space": "sRGB", "Blue Component": 0, "Green Component": 0.59999999999999998 }, - "Normal Font": "Monaco 12", "Link Color": { "Red Component": 0, "Color Space": "sRGB", @@ -374,6 +361,25 @@ "Alpha Component": 1, "Green Component": 0.35916060209274292 }, + "Use Non-ASCII Font": false, + "Ansi 7 Color": { + "Red Component": 0.93333333333333335, + "Color Space": "sRGB", + "Blue Component": 0.83529411764705885, + "Green Component": 0.90980392156862744 + }, + "Ansi 8 Color": { + "Red Component": 0, + "Color Space": "sRGB", + "Blue Component": 0.21176470588235294, + "Green Component": 0.16862745098039217 + }, + "Ansi 9 Color": { + "Red Component": 0.79607843137254897, + "Color Space": "sRGB", + "Blue Component": 0.086274509803921567, + "Green Component": 0.29411764705882354 + }, "Ansi 4 Color": { "Red Component": 0.14901960784313725, "Color Space": "sRGB", diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/Info.plist b/synced/iTerm Default Dynamic Profile.app/Contents/Info.plist deleted file mode 100644 index b3254441..00000000 --- a/synced/iTerm Default Dynamic Profile.app/Contents/Info.plist +++ /dev/null @@ -1,109 +0,0 @@ - - - - - AMIsApplet - - AMStayOpen - - BuildMachineOSBuild - 19A603013 - CFBundleAllowMixedLocalizations - - CFBundleDevelopmentRegion - English - CFBundleDocumentTypes - - - CFBundleTypeExtensions - - * - - CFBundleTypeName - Automator workflow file - CFBundleTypeOSTypes - - **** - - CFBundleTypeRole - Viewer - - - CFBundleExecutable - Automator Application Stub - CFBundleIconFile - ApplicationStub - CFBundleIdentifier - com.apple.automator.iTerm-Default-Dynamic-Profile - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - iTerm Default Dynamic Profile - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.3 - CFBundleSignature - ???? - CFBundleSupportedPlatforms - - MacOSX - - CFBundleURLTypes - - CFBundleVersion - 509 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 12A8179f - DTPlatformName - macosx - DTPlatformVersion - 11.1 - DTSDKBuild - 20C62 - DTSDKName - macosx11.1internal - DTXcode - 1200 - DTXcodeBuild - 12A8179f - LSMinimumSystemVersion - 10.9 - LSUIElement - - NSAppleEventsUsageDescription - This workflow needs to control other applications to run. - NSAppleMusicUsageDescription - This workflow needs access to your music to run. - NSAppleScriptEnabled - YES - NSCalendarsUsageDescription - This workflow needs access to your calendars to run. - NSCameraUsageDescription - This workflow needs access to your camera to run. - NSContactsUsageDescription - This workflow needs access to your contacts to run. - NSHomeKitUsageDescription - This workflow needs access to your HomeKit Home to run. - NSMicrophoneUsageDescription - This workflow needs access to your microphone to run. - NSPhotoLibraryUsageDescription - This workflow needs access to your photos to run. - NSPrincipalClass - NSApplication - NSRemindersUsageDescription - This workflow needs access to your reminders to run. - NSServices - - NSSiriUsageDescription - This workflow needs access to Siri to run. - NSSystemAdministrationUsageDescription - This workflow needs access to administer this system in order to run. - UTExportedTypeDeclarations - - UTImportedTypeDeclarations - - - diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/MacOS/Automator Application Stub b/synced/iTerm Default Dynamic Profile.app/Contents/MacOS/Automator Application Stub deleted file mode 100755 index 47541029..00000000 Binary files a/synced/iTerm Default Dynamic Profile.app/Contents/MacOS/Automator Application Stub and /dev/null differ diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/ApplicationStub.icns b/synced/iTerm Default Dynamic Profile.app/Contents/Resources/ApplicationStub.icns deleted file mode 100644 index 5c5f9899..00000000 Binary files a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/ApplicationStub.icns and /dev/null differ diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/Assets.car b/synced/iTerm Default Dynamic Profile.app/Contents/Resources/Assets.car deleted file mode 100644 index 74018286..00000000 Binary files a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/Assets.car and /dev/null differ diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/en.lproj/InfoPlist.strings b/synced/iTerm Default Dynamic Profile.app/Contents/Resources/en.lproj/InfoPlist.strings deleted file mode 100644 index 230f0236..00000000 Binary files a/synced/iTerm Default Dynamic Profile.app/Contents/Resources/en.lproj/InfoPlist.strings and /dev/null differ diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/_CodeSignature/CodeResources b/synced/iTerm Default Dynamic Profile.app/Contents/_CodeSignature/CodeResources deleted file mode 100644 index eebb4ffb..00000000 --- a/synced/iTerm Default Dynamic Profile.app/Contents/_CodeSignature/CodeResources +++ /dev/null @@ -1,166 +0,0 @@ - - - - - files - - Resources/ApplicationStub.icns - - RYTqh+7iocnEIV8iTs9EgJjEkO4= - - Resources/Assets.car - - 6x486X/RjFLUxX/nTxPBfMGbmCo= - - Resources/en.lproj/InfoPlist.strings - - hash - - 1b2wydwl2VFJjkXy23BqsZ3UwdU= - - optional - - - - files2 - - Resources/ApplicationStub.icns - - hash2 - - odOqeBevxysHIbR5V5qgZz11qTuV9cL5jKaIcUw3R0I= - - - Resources/Assets.car - - hash2 - - LnTju/BZ3F2CTA9e2XgciGp8jYhtkX/ez4o9EBeChzA= - - - Resources/en.lproj/InfoPlist.strings - - hash2 - - hFx+B4kTwFrl4GWPbeiqWtlmQN65f8k7b6KEJ6uucSA= - - optional - - - document.wflow - - cdhash - - uEt9jQFDCYXstxE+VBFB8JnXLjo= - - requirement - cdhash H"27714d3adfdc532fae50b3f350b3224e748a0657" or cdhash H"b84b7d8d01430985ecb7113e541141f099d72e3a" - - - rules - - ^Resources/ - - ^Resources/.*\.lproj/ - - optional - - weight - 1000 - - ^Resources/.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Resources/Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ - - nested - - weight - 10 - - ^.* - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^Resources/ - - weight - 20 - - ^Resources/.*\.lproj/ - - optional - - weight - 1000 - - ^Resources/.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Resources/Base\.lproj/ - - weight - 1010 - - ^[^/]+$ - - nested - - weight - 10 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/synced/iTerm Default Dynamic Profile.app/Contents/document.wflow b/synced/iTerm Default Dynamic Profile.app/Contents/document.wflow deleted file mode 100644 index 08565c43..00000000 --- a/synced/iTerm Default Dynamic Profile.app/Contents/document.wflow +++ /dev/null @@ -1,194 +0,0 @@ - - - - - AMApplicationBuild - 509 - AMApplicationVersion - 2.10 - AMDocumentVersion - 2 - actions - - - action - - AMAccepts - - Container - List - Optional - - Types - - com.apple.cocoa.string - - - AMActionVersion - 2.0.3 - AMApplication - - Automator - - AMParameterProperties - - COMMAND_STRING - - CheckedForUserDefaultShell - - inputMethod - - shell - - source - - - AMProvides - - Container - List - Types - - com.apple.cocoa.string - - - ActionBundlePath - /System/Library/Automator/Run Shell Script.action - ActionName - Run Shell Script - ActionParameters - - COMMAND_STRING - source $HOME/.dotfiles/utils/venv/bin/activate -python3 $HOME/.dotfiles/utils/autoload_iterm.py - CheckedForUserDefaultShell - - inputMethod - 0 - shell - /bin/bash - source - - - BundleIdentifier - com.apple.RunShellScript - CFBundleVersion - 2.0.3 - CanShowSelectedItemsWhenRun - - CanShowWhenRun - - Category - - AMCategoryUtilities - - Class Name - RunShellScriptAction - InputUUID - EBF24DE9-2CE2-4FB9-B670-E86E658E1035 - Keywords - - Shell - Script - Command - Run - Unix - - OutputUUID - F39ADC47-EDC6-4C62-8E80-067C19FB5EF1 - UUID - 347BD435-8A89-4116-AC25-E3AA33F5A29D - UnlocalizedApplications - - Automator - - arguments - - 0 - - default value - 0 - name - inputMethod - required - 0 - type - 0 - uuid - 0 - - 1 - - default value - - name - CheckedForUserDefaultShell - required - 0 - type - 0 - uuid - 1 - - 2 - - default value - - name - source - required - 0 - type - 0 - uuid - 2 - - 3 - - default value - - name - COMMAND_STRING - required - 0 - type - 0 - uuid - 3 - - 4 - - default value - /bin/sh - name - shell - required - 0 - type - 0 - uuid - 4 - - - conversionLabel - 0 - isViewVisible - 1 - location - 309.000000:699.000000 - nibPath - /System/Library/Automator/Run Shell Script.action/Contents/Resources/Base.lproj/main.nib - - isViewVisible - 1 - - - connectors - - workflowMetaData - - workflowTypeIdentifier - com.apple.Automator.application - - - diff --git a/utils/autoload_iterm.py b/utils/autoload_iterm.py deleted file mode 100644 index 09bd7584..00000000 --- a/utils/autoload_iterm.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env python3 - -import iterm2 - -async def main(connection): - all_profiles = await iterm2.PartialProfile.async_query(connection) - for profile in all_profiles: - if profile.name == "Synced": - await profile.async_make_default() - return - -iterm2.run_until_complete(main, retry=True)