mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-18 08:05:01 +00:00
17 lines
934 B
Bash
17 lines
934 B
Bash
[[ -f "$HOMEBREW_PREFIX/etc/bash_completion" ]] && . "$HOMEBREW_PREFIX/etc/bash_completion"
|
|
[[ -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
|
|
[[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]] && . /usr/share/doc/fzf/examples/key-bindings.bash
|
|
[[ -f /data/data/com.termux/files/usr/share/fzf/key-bindings.bash ]] && . /data/data/com.termux/files/usr/share/fzf/key-bindings.bash
|
|
[[ "$TERM" == xterm-256color ]] && PS1='\[\e]0;\u@\h: \w\a\]'
|
|
HISTCONTROL=ignoreboth:erasedups
|
|
HISTFILESIZE=$((0x7fffffff))
|
|
HISTSIZE=$((0x7fffffff))
|
|
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
|
|
PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(__git_ps1 "\[\033[32m\](%s)\[\033[00m\]")\n\$ '
|
|
alias ..='cd ..'
|
|
alias cp='cp --reflink=auto'
|
|
alias diff='diff --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias ll='ls -alF'
|
|
alias ls='ls --color=auto'
|
|
set +o histexpand
|