Created
June 26, 2025 09:49
-
-
Save Blithe-Chiang/02a1e64368dc3892f9bf71314c931f5d to your computer and use it in GitHub Desktop.
简洁的bashrc配置
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
| # Enable the subsequent settings only in interactive sessions | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac | |
| eval "$(fnm env --use-on-cd)" | |
| export NODE_TLS_REJECT_UNAUTHORIZED=0 | |
| export JAVA_HOME="C:\\Program Files\\Android\\Android Studio\\jbr" | |
| if [[ "$TERM_PROGRAM" == "vscode" && -d "$PWD/node_modules/.bin" ]]; then | |
| export PATH="$PWD/node_modules/.bin:$PATH" | |
| fi | |
| # Change default open browser | |
| export BROWSER="brave" | |
| __git_complete gco _git_checkout | |
| __git_complete gbd _git_checkout | |
| __git_complete gm _git_merge | |
| __git_complete gl _git_pull | |
| __git_complete g _git | |
| alias gp="git push" | |
| alias gl="git pull" | |
| alias gcb="git checkout -b" | |
| alias gco="git checkout" | |
| alias gbd="git branch -d" | |
| alias gm="git merge" | |
| alias gst="git status" | |
| alias g="git" | |
| alias pp="nr && g pack && gp" | |
| alias r="nr" | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias ....="cd ../../.." | |
| # 使用方向键,根据当前输入来搜索历史命令 | |
| bind '"\e[A": history-search-backward' | |
| bind '"\e[B": history-search-forward' | |
| PS1='\w 💨 ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment