forked from w3cj/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,9 @@ | ||
shopt -s autocd | ||
shopt -s histappend | ||
|
||
export HISTSIZE=5000 | ||
export HISTFILESIZE=10000 | ||
|
||
bind '"\e[A": history-search-backward' | ||
bind '"\e[B": history-search-forward' | ||
|
||
export CLICOLOR=1 | ||
export LSCOLORS=GxFxCxDxBxegedabagaced | ||
|
||
txtred='\e[0;31m' # Red | ||
txtgrn='\e[0;32m' # Green | ||
bldgrn='\e[1;32m' # Bold Green | ||
bldpur='\e[1;35m' # Bold Purple | ||
txtrst='\e[0m' # Text Reset | ||
|
||
emojis=("👾" "🌐" "🎲" "🌍" "🐉" "🌵") | ||
|
||
EMOJI=${emojis[$RANDOM % ${#emojis[@]} ]} | ||
|
||
print_before_the_prompt () { | ||
dir=$PWD | ||
home=$HOME | ||
dir=${dir/"$HOME"/"~"} | ||
printf "\n $txtred%s: $bldpur%s $txtgrn%s\n$txtrst" "$HOST_NAME" "$dir" "$(vcprompt)" | ||
} | ||
|
||
PROMPT_COMMAND=print_before_the_prompt | ||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | ||
PS1="$EMOJI >" | ||
|
||
source ~/.commonrc | ||
# 加载系统范围的配置文件 | ||
if [ -f /etc/profile ]; then | ||
. /etc/profile | ||
fi | ||
|
||
# 加载用户的 .bashrc | ||
if [ -f "$HOME/.bashrc" ]; then | ||
. "$HOME/.bashrc" | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
shopt -s autocd | ||
shopt -s histappend | ||
|
||
export HISTSIZE=5000 | ||
export HISTFILESIZE=10000 | ||
|
||
bind '"\e[A": history-search-backward' | ||
bind '"\e[B": history-search-forward' | ||
|
||
export CLICOLOR=1 | ||
export LSCOLORS=GxFxCxDxBxegedabagaced | ||
|
||
txtred='\e[0;31m' # Red | ||
txtgrn='\e[0;32m' # Green | ||
bldgrn='\e[1;32m' # Bold Green | ||
bldpur='\e[1;35m' # Bold Purple | ||
txtrst='\e[0m' # Text Reset | ||
|
||
emojis=("👾" "🌐" "🎲" "🌍" "🐉" "🌵") | ||
|
||
EMOJI=${emojis[$RANDOM % ${#emojis[@]} ]} | ||
|
||
print_before_the_prompt () { | ||
dir=$PWD | ||
home=$HOME | ||
dir=${dir/"$HOME"/"~"} | ||
printf "\n $txtred%s: $bldpur%s $txtgrn%s\n$txtrst" "$HOST_NAME" "$dir" "$(vcprompt)" | ||
} | ||
|
||
PROMPT_COMMAND=print_before_the_prompt | ||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | ||
PS1="$EMOJI >" | ||
|
||
source ~/.commonrc | ||
|
||
# Always Warpify the subshell | ||
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash" }}\x9c' |
This file contains 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
This file contains 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