This file contains hidden or 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
| BASH_ENV=~/.bashrc exec bash -c "$*" |
This file contains hidden or 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
| #!/usr/bin/env swift | |
| import AppKit | |
| // Function to get the frontmost window | |
| func getFrontmostWindow() -> AXUIElement? { | |
| guard let app = NSWorkspace.shared.frontmostApplication else { | |
| return nil | |
| } | |
| let appElement = AXUIElementCreateApplication(app.processIdentifier) |
This file contains hidden or 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
| # Source: https://utcc.utoronto.ca/~cks/space/blog/programming/BashGoodSetEReports | |
| trap 'echo "Exit status $? at line $LINENO from: $BASH_COMMAND"' ERR |
This file contains hidden or 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
| # strict: true | |
| # File organization | |
| # included: | |
| # - Sources | |
| # - Tests | |
| excluded: | |
| - .build | |
| - .swiftpm | |
| - DerivedData |
This file contains hidden or 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
| --swiftversion 5.9 | |
| # Opt-in rule config | |
| --disable all | |
| # Explicitly disabled (opt-in) rules: | |
| # See: https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#acronyms | |
| --disable acronyms |
NewerOlder