no need to set as default in the end...

This commit is contained in:
Chen Asraf
2021-01-31 02:01:32 +02:00
parent 3b913f42c9
commit d47e7bc672
11 changed files with 39 additions and 512 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

2
.zshrc
View File

@@ -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"

View File

@@ -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",

View File

@@ -1,109 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AMIsApplet</key>
<true/>
<key>AMStayOpen</key>
<false/>
<key>BuildMachineOSBuild</key>
<string>19A603013</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>Automator workflow file</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Automator Application Stub</string>
<key>CFBundleIconFile</key>
<string>ApplicationStub</string>
<key>CFBundleIdentifier</key>
<string>com.apple.automator.iTerm-Default-Dynamic-Profile</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>iTerm Default Dynamic Profile</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleURLTypes</key>
<array/>
<key>CFBundleVersion</key>
<string>509</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12A8179f</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.1</string>
<key>DTSDKBuild</key>
<string>20C62</string>
<key>DTSDKName</key>
<string>macosx11.1internal</string>
<key>DTXcode</key>
<string>1200</string>
<key>DTXcodeBuild</key>
<string>12A8179f</string>
<key>LSMinimumSystemVersion</key>
<string>10.9</string>
<key>LSUIElement</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>This workflow needs to control other applications to run.</string>
<key>NSAppleMusicUsageDescription</key>
<string>This workflow needs access to your music to run.</string>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
<key>NSCalendarsUsageDescription</key>
<string>This workflow needs access to your calendars to run.</string>
<key>NSCameraUsageDescription</key>
<string>This workflow needs access to your camera to run.</string>
<key>NSContactsUsageDescription</key>
<string>This workflow needs access to your contacts to run.</string>
<key>NSHomeKitUsageDescription</key>
<string>This workflow needs access to your HomeKit Home to run.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This workflow needs access to your microphone to run.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This workflow needs access to your photos to run.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSRemindersUsageDescription</key>
<string>This workflow needs access to your reminders to run.</string>
<key>NSServices</key>
<array/>
<key>NSSiriUsageDescription</key>
<string>This workflow needs access to Siri to run.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>This workflow needs access to administer this system in order to run.</string>
<key>UTExportedTypeDeclarations</key>
<array/>
<key>UTImportedTypeDeclarations</key>
<array/>
</dict>
</plist>

View File

@@ -1,166 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Resources/ApplicationStub.icns</key>
<data>
RYTqh+7iocnEIV8iTs9EgJjEkO4=
</data>
<key>Resources/Assets.car</key>
<data>
6x486X/RjFLUxX/nTxPBfMGbmCo=
</data>
<key>Resources/en.lproj/InfoPlist.strings</key>
<dict>
<key>hash</key>
<data>
1b2wydwl2VFJjkXy23BqsZ3UwdU=
</data>
<key>optional</key>
<true/>
</dict>
</dict>
<key>files2</key>
<dict>
<key>Resources/ApplicationStub.icns</key>
<dict>
<key>hash2</key>
<data>
odOqeBevxysHIbR5V5qgZz11qTuV9cL5jKaIcUw3R0I=
</data>
</dict>
<key>Resources/Assets.car</key>
<dict>
<key>hash2</key>
<data>
LnTju/BZ3F2CTA9e2XgciGp8jYhtkX/ez4o9EBeChzA=
</data>
</dict>
<key>Resources/en.lproj/InfoPlist.strings</key>
<dict>
<key>hash2</key>
<data>
hFx+B4kTwFrl4GWPbeiqWtlmQN65f8k7b6KEJ6uucSA=
</data>
<key>optional</key>
<true/>
</dict>
<key>document.wflow</key>
<dict>
<key>cdhash</key>
<data>
uEt9jQFDCYXstxE+VBFB8JnXLjo=
</data>
<key>requirement</key>
<string>cdhash H"27714d3adfdc532fae50b3f350b3224e748a0657" or cdhash H"b84b7d8d01430985ecb7113e541141f099d72e3a"</string>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>

View File

@@ -1,194 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>509</string>
<key>AMApplicationVersion</key>
<string>2.10</string>
<key>AMDocumentVersion</key>
<string>2</string>
<key>actions</key>
<array>
<dict>
<key>action</key>
<dict>
<key>AMAccepts</key>
<dict>
<key>Container</key>
<string>List</string>
<key>Optional</key>
<true/>
<key>Types</key>
<array>
<string>com.apple.cocoa.string</string>
</array>
</dict>
<key>AMActionVersion</key>
<string>2.0.3</string>
<key>AMApplication</key>
<array>
<string>Automator</string>
</array>
<key>AMParameterProperties</key>
<dict>
<key>COMMAND_STRING</key>
<dict/>
<key>CheckedForUserDefaultShell</key>
<dict/>
<key>inputMethod</key>
<dict/>
<key>shell</key>
<dict/>
<key>source</key>
<dict/>
</dict>
<key>AMProvides</key>
<dict>
<key>Container</key>
<string>List</string>
<key>Types</key>
<array>
<string>com.apple.cocoa.string</string>
</array>
</dict>
<key>ActionBundlePath</key>
<string>/System/Library/Automator/Run Shell Script.action</string>
<key>ActionName</key>
<string>Run Shell Script</string>
<key>ActionParameters</key>
<dict>
<key>COMMAND_STRING</key>
<string>source $HOME/.dotfiles/utils/venv/bin/activate
python3 $HOME/.dotfiles/utils/autoload_iterm.py</string>
<key>CheckedForUserDefaultShell</key>
<true/>
<key>inputMethod</key>
<integer>0</integer>
<key>shell</key>
<string>/bin/bash</string>
<key>source</key>
<string></string>
</dict>
<key>BundleIdentifier</key>
<string>com.apple.RunShellScript</string>
<key>CFBundleVersion</key>
<string>2.0.3</string>
<key>CanShowSelectedItemsWhenRun</key>
<false/>
<key>CanShowWhenRun</key>
<true/>
<key>Category</key>
<array>
<string>AMCategoryUtilities</string>
</array>
<key>Class Name</key>
<string>RunShellScriptAction</string>
<key>InputUUID</key>
<string>EBF24DE9-2CE2-4FB9-B670-E86E658E1035</string>
<key>Keywords</key>
<array>
<string>Shell</string>
<string>Script</string>
<string>Command</string>
<string>Run</string>
<string>Unix</string>
</array>
<key>OutputUUID</key>
<string>F39ADC47-EDC6-4C62-8E80-067C19FB5EF1</string>
<key>UUID</key>
<string>347BD435-8A89-4116-AC25-E3AA33F5A29D</string>
<key>UnlocalizedApplications</key>
<array>
<string>Automator</string>
</array>
<key>arguments</key>
<dict>
<key>0</key>
<dict>
<key>default value</key>
<integer>0</integer>
<key>name</key>
<string>inputMethod</string>
<key>required</key>
<string>0</string>
<key>type</key>
<string>0</string>
<key>uuid</key>
<string>0</string>
</dict>
<key>1</key>
<dict>
<key>default value</key>
<false/>
<key>name</key>
<string>CheckedForUserDefaultShell</string>
<key>required</key>
<string>0</string>
<key>type</key>
<string>0</string>
<key>uuid</key>
<string>1</string>
</dict>
<key>2</key>
<dict>
<key>default value</key>
<string></string>
<key>name</key>
<string>source</string>
<key>required</key>
<string>0</string>
<key>type</key>
<string>0</string>
<key>uuid</key>
<string>2</string>
</dict>
<key>3</key>
<dict>
<key>default value</key>
<string></string>
<key>name</key>
<string>COMMAND_STRING</string>
<key>required</key>
<string>0</string>
<key>type</key>
<string>0</string>
<key>uuid</key>
<string>3</string>
</dict>
<key>4</key>
<dict>
<key>default value</key>
<string>/bin/sh</string>
<key>name</key>
<string>shell</string>
<key>required</key>
<string>0</string>
<key>type</key>
<string>0</string>
<key>uuid</key>
<string>4</string>
</dict>
</dict>
<key>conversionLabel</key>
<integer>0</integer>
<key>isViewVisible</key>
<integer>1</integer>
<key>location</key>
<string>309.000000:699.000000</string>
<key>nibPath</key>
<string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/Base.lproj/main.nib</string>
</dict>
<key>isViewVisible</key>
<integer>1</integer>
</dict>
</array>
<key>connectors</key>
<dict/>
<key>workflowMetaData</key>
<dict>
<key>workflowTypeIdentifier</key>
<string>com.apple.Automator.application</string>
</dict>
</dict>
</plist>

View File

@@ -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)