mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-18 16:07:59 +00:00
add .profile, .bashrc
This commit is contained in:
parent
33eade4f00
commit
54cd38d262
2 changed files with 23 additions and 0 deletions
15
.bashrc
Normal file
15
.bashrc
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[[ -f "$HOMEBREW_PREFIX/etc/bash_completion" ]] && . "$HOMEBREW_PREFIX/etc/bash_completion"
|
||||||
|
[[ -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
|
||||||
|
[[ "$TERM" == xterm-256color ]] && PS1='\[\e]0;\u@\h: \w\a\]'
|
||||||
|
HISTCONTROL=ignoreboth:erasedups
|
||||||
|
HISTFILESIZE=2000000
|
||||||
|
HISTSIZE=2000000
|
||||||
|
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
|
||||||
|
PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
|
PS1=${PS1%'\$ '}'$(__git_ps1 " \[\033[32m\](%s)\[\033[00m\]")\n\$ '
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias diff='diff --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
set +o histexpand
|
8
.profile
Normal file
8
.profile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew";
|
||||||
|
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar";
|
||||||
|
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew";
|
||||||
|
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}";
|
||||||
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:";
|
||||||
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
|
||||||
|
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
|
Loading…
Add table
Reference in a new issue