<commit_before>#!/bin/bash

# Easier navigation: .., ..., ~ and -
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."

# Shortcuts
alias c "clear && printf '\e[3J'"
alias dl "cd ~/Downloads"
alias dt "cd ~/Desktop"
alias g='git'
alias v="vim"
alias k="kubectl"
alias pro "cd ~/Projects"
alias rm "trash"
alias please "sudo"

# programs
alias subl 'open -a "Sublime Text"'
alias preview "open -a '$PREVIEW'"
alias xcode "open -a '/Developer/Applications/Xcode.app'"
alias filemerge "open -a '/Developer/Applications/Utilities/FileMerge.app'"
alias safari "open -a safari"
alias firefox "open -a firefox"
alias opera "open -a opera"
alias chrome "open -a google\ chrome"
alias chromium "open -a chromium"
alias dashcode "open -a dashcode"
alias macdown "open -a macdown"
alias tower "open -a tower"
alias f 'open -a Finder'
alias fireworks "open -a '/Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app'"
alias photoshop "open -a '/Applications/Adobe Photoshop CS6/Adobe Photoshop.app'"
alias markoff "open -a Markoff"
alias caret "open -a Caret"

# historial navigation
alias hg 'history | grep'

# real sed after `brew install gnu-sed`
alias sed gsed

# Avoid progress bar and follow redirects
alias curl "curl -s"
alias headers "curl -I -X GET"

# List all files colorized in long format
alias ls "exa"
alias l "exa --long -a --group --tree --level=1 -F"

alias cat 'bat'
alias less 'bat'
alias diff 'diff-so-fancy'
alias find 'fd'
alias du "ncdu --color dark -rr -x --exclude .git --exclude node_modules"
alias man "tldr"

# Enhanced WHOIS lookups
alias whois "whois -h whois-servers.net"

alias ping 'prettyping --nolegend'
alias top 'vtop'
alias json 'node -e '\''console.dir(JSON.parse(fs.readFileSync("/dev/stdin", "utf-8")), { depth: null })'\'

# Flush DNS cache
alias dns_flush "sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache"
alias dns_setup "networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1 fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b fdf8:f53e:61e4::18; networksetup -getdnsservers Wi-Fi"

# Firewall
alias firewall_off "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0"
alias firewall_on "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2"

# git
alias gurl "gh browse"
alias gup 'g up && git-garbage'

# npm
alias npm "pnpm"
alias npmp "npm publish"
alias npma "npm adduser"
alias npmi "npm install --no-lock"
alias npml "npm list --depth=3"
alias npmu "npm uninstall"
alias npmig "npm install -g"
alias npmlg "npm list -g --depth=0"
alias npmug "npm uninstall -g"
alias npmlink "npm link"
alias npmurl "npm-url"
alias t "npm test"
alias f flyctl

# Recursively delete `.DS_Store` files
alias cleanup "find . -name '*.DS_Store' -type f -ls -delete"

# support alias inside watch
alias watch 'watch '
alias w "watch "

# File size
alias fs "stat -f \"%z bytes\""

# Hide/show all desktop icons (useful when presenting)
alias hidedesktop "defaults write com.apple.finder CreateDesktop -bool false && killall Finder"<commit_msg>refactor: remove unnecessary quotes<commit_after>#!/bin/bash

# Easier navigation: .., ..., ~ and -
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."

# Shortcuts
alias c "clear && printf '\e[3J'"
alias dl "cd ~/Downloads"
alias dt "cd ~/Desktop"
alias g='git'
alias v="vim"
alias k="kubectl"
alias pro "cd ~/Projects"
alias rm trash
alias please sudo

# programs
alias subl 'open -a "Sublime Text"'
alias preview "open -a '$PREVIEW'"
alias xcode "open -a '/Developer/Applications/Xcode.app'"
alias filemerge "open -a '/Developer/Applications/Utilities/FileMerge.app'"
alias safari "open -a safari"
alias firefox "open -a firefox"
alias opera "open -a opera"
alias chrome "open -a google\ chrome"
alias chromium "open -a chromium"
alias dashcode "open -a dashcode"
alias macdown "open -a macdown"
alias tower "open -a tower"
alias f 'open -a Finder'
alias fireworks "open -a '/Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app'"
alias photoshop "open -a '/Applications/Adobe Photoshop CS6/Adobe Photoshop.app'"
alias markoff "open -a Markoff"
alias caret "open -a Caret"

# historial navigation
alias hg 'history | grep'

# real sed after `brew install gnu-sed`
alias sed gsed

# Avoid progress bar and follow redirects
alias curl "curl -s"
alias headers "curl -I -X GET"

# List all files colorized in long format
alias ls exa
alias l "exa --long -a --group --tree --level=1 -F"

alias cat bat
alias less bat
alias diff diff-so-fancy
alias find fd
alias du "ncdu --color dark -rr -x --exclude .git --exclude node_modules"
alias man tldr

# Enhanced WHOIS lookups
alias whois "whois -h whois-servers.net"

alias ping 'prettyping --nolegend'
alias top vtop
alias json 'node -e '\''console.dir(JSON.parse(fs.readFileSync("/dev/stdin", "utf-8")), { depth: null })'\'

# Flush DNS cache
alias dns_flush "sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache"
alias dns_setup "networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1 fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b fdf8:f53e:61e4::18; networksetup -getdnsservers Wi-Fi"

# Firewall
alias firewall_off "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0"
alias firewall_on "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2"

# git
alias gurl "gh browse"
alias gup 'g up && git-garbage'

# npm
alias npm pnpm
alias npmp "npm publish"
alias npma "npm adduser"
alias npmi "npm install --no-lock"
alias npml "npm list --depth=3"
alias npmu "npm uninstall"
alias npmig "npm install -g"
alias npmlg "npm list -g --depth=0"
alias npmug "npm uninstall -g"
alias npmlink "npm link"
alias npmurl npm-url
alias t "npm test"
alias f flyctl

# Recursively delete `.DS_Store` files
alias cleanup "find . -name '*.DS_Store' -type f -ls -delete"

# support alias inside watch
alias watch 'watch '
alias w "watch "

# File size
alias fs "stat -f \"%z bytes\""

# Hide/show all desktop icons (useful when presenting)
alias hidedesktop "defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
{'fraction_non_alphanumeric': 0.12990196078431374, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 3.9522653721682848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4309945', 'n_tokens_mistral': 2282, 'n_tokens_neox': 2112, 'n_words': 786}