1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 08:05:01 +00:00
dotfiles/.bashrc

18 lines
934 B
Bash
Raw Permalink Normal View History

2022-04-23 15:44:31 +09:00
[[ -f "$HOMEBREW_PREFIX/etc/bash_completion" ]] && . "$HOMEBREW_PREFIX/etc/bash_completion"
[[ -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
2024-10-28 23:32:15 +09:00
[[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]] && . /usr/share/doc/fzf/examples/key-bindings.bash
2024-10-29 02:55:33 +09:00
[[ -f /data/data/com.termux/files/usr/share/fzf/key-bindings.bash ]] && . /data/data/com.termux/files/usr/share/fzf/key-bindings.bash
2022-04-23 15:44:31 +09:00
[[ "$TERM" == xterm-256color ]] && PS1='\[\e]0;\u@\h: \w\a\]'
HISTCONTROL=ignoreboth:erasedups
HISTFILESIZE=$((0x7fffffff))
HISTSIZE=$((0x7fffffff))
2022-04-23 15:44:31 +09:00
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
2023-08-08 21:51:52 +09:00
PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(__git_ps1 "\[\033[32m\](%s)\[\033[00m\]")\n\$ '
2022-04-23 15:44:31 +09:00
alias ..='cd ..'
2022-09-04 15:51:46 +09:00
alias cp='cp --reflink=auto'
2022-04-23 15:44:31 +09:00
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ll='ls -alF'
alias ls='ls --color=auto'
set +o histexpand