Created
April 27, 2026 16:31
-
-
Save scarlac/049587b059656353c1eaa6059705f479 to your computer and use it in GitHub Desktop.
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
| # Retain all history, allow search | |
| setopt APPEND_HISTORY | |
| setopt histignorealldups | |
| bindkey -e | |
| bindkey '^R' history-incremental-search-backward | |
| # Terminal prompt to show exit code and time | |
| # e.g. 9:59:59 ~/ ⚡️ | |
| PROMPT='%* %F{magenta}%4~%f %(?.⚡️.💥) ' | |
| RPROMPT='' | |
| # Run Node binaries from local project. No more global installs! | |
| export PATH=./node_modules/.bin:$PATH | |
| # Disable Yarn v2+ adding packageManager prop in package.json: | |
| export COREPACK_ENABLE_AUTO_PIN=0 | |
| # See what apps are listening on a given port | |
| alias ports='sudo lsof -P -i' | |
| # Disable wrapping, helpful for reading logs without needing 'less' | |
| alias wrapoff='tput rmam' | |
| alias wrapon='tput smam' | |
| # Activate Python virtual env and install packages automatically | |
| alias venv='source .venv/bin/activate && .venv/bin/pip install -r requirements.txt' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment