Skip to content

Commit ade3b42

Browse files
committed
Add rigprep
1 parent d9c1cd4 commit ade3b42

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

config/.zshrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ echo "Wired: Essential system memory that cannot be moved to disk.";
146146
echo "Compressed: Memory zipped to save space; much faster than using SSD swap.";
147147
echo "Free: Empty RAM doing nothing (Wasted RAM).";
148148
'
149-
149+
150150
## get top process eating memory
151-
alias psmem='ps auxf | sort -nr -k 4'
152-
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
151+
alias psmem='ps -A -o pid=PID,pmem=%MEM,comm=COMMAND | tail -n +2 | sort -nr -k 2'
152+
alias psmem10='ps -A -o pid=PID,pmem=%MEM,comm=COMMAND | tail -n +2 | sort -nr -k 2 | head -10'
153153

154154
## get top process eating cpu ##
155155
alias pscpu='ps auxf | sort -nr -k 3'

scripts/macos/setup_env.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ apps=(
5050
"lnav" # A robust log colorizer to tail logs: tail -f your_log_file.log | ccze -A
5151
#"hugo" # Configurable fastest static site generator
5252
"graphviz" # Convert dot files to images
53+
"ripgrip" # Render markdown in terminal with interactive preview
5354
"dockutil" # Command line tool for manipulating macOS Dock items
5455
)
5556

@@ -187,4 +188,4 @@ brew cleanup
187188
# set_env_vars comment this as jenv manages versions
188189
verify_installations
189190

190-
printf "\n\n👌 Awesome, all set.\n"
191+
printf "\n\n👌 Awesome, all set.\n"

scripts/windows/setup_env.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $cliTools = @(
2727
@{ Id = "sharkdp.bat"; Description = "Clone of cat(1) with syntax highlighting and Git integration" },
2828
@{ Id = "OpenJS.NodeJS"; Description = "Cross-platform JavaScript runtime environment" },
2929
@{ Id = "JohnMacFarlane.Pandoc"; Description = "Swiss-army knife of markup format conversion" },
30+
@{ Id = "ripgrip"; Description = "Render markdown in terminal with interactive preview"; FallbackName = "ripgrip" },
3031
@{ Id = "GitHub.Copilot.CLI"; Description = "GitHub Copilot CLI - AI pair-programmer in the terminal" },
3132
@{ Id = "Graphviz.Graphviz"; Description = "Convert dot files to images" }
3233
)

0 commit comments

Comments
 (0)