Skip to content

Commit efce55d

Browse files
committed
update for AI
1 parent aad14e6 commit efce55d

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.copilotrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"instructions": [
3+
"Always use enhanced terminal patterns for run_in_terminal commands",
4+
"Detect shell environment and apply appropriate output capture method",
5+
"Use file redirection + content display + echo for maximum reliability"
6+
],
7+
"terminal": {
8+
"defaultPattern": "enhanced",
9+
"captureMode": "complete",
10+
"shellDetection": true
11+
}
12+
}

zsh/aliases.zsh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ config_files=($DOTFILES_ROOT/**/aliases.zsh)
1010
for file in ${config_files:#*/zsh/aliases.zsh}; do
1111
source $file
1212
done
13+
14+
function enhanced_command() {
15+
local temp_file=$(mktemp)
16+
{ eval "$@"; } > "$temp_file" 2>&1
17+
cat "$temp_file"
18+
echo ""
19+
rm -f "$temp_file"
20+
}
21+
22+
# alias for easy usage
23+
alias enh="enhanced_command"

0 commit comments

Comments
 (0)