File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -10,3 +10,14 @@ config_files=($DOTFILES_ROOT/**/aliases.zsh)
1010for file in ${config_files:#*/ zsh/ aliases.zsh} ; do
1111 source $file
1212done
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"
You can’t perform that action at this time.
0 commit comments