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
<# | |
.SYNOPSIS | |
Simple directory warp/shortcut system for PowerShell. | |
.DESCRIPTION | |
Defines a set of path shortcuts (warp points) so you can quickly `cd` | |
into commonly used directories. Includes: | |
- `cdw <name>` : jumps to the directory shortcut | |
- `cdw-list` : shows all defined shortcuts | |
- Tab completion for `cdw` arguments |
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
#!/bin/bash | |
# Delete all GitHub deployments except the most recent one | |
DRY_RUN="${DRY_RUN:-false}" | |
# --- Detect owner/repo if not provided --- | |
OWNER="${OWNER:-}" | |
REPO="${REPO:-}" | |
if [[ -z "${OWNER}" || -z "${REPO}" ]]; then | |
if gh repo view >/dev/null 2>&1; then |