Add .bashrc
This commit is contained in:
parent
7890092b1b
commit
09c2060a1d
51
.bashrc
Normal file
51
.bashrc
Normal file
@ -0,0 +1,51 @@
|
||||
[ -z "$PS1" ] && return
|
||||
PS1='\[\033[0;37m\][\u@\h $(date +%H:%M) \W]$\[\033[0;0m\] '
|
||||
|
||||
if [[ -n "$DISPLAY" ]] ; then
|
||||
[[ -n "$TMUX" ]] && export TERM=screen-256color || export TERM=xterm-256color
|
||||
fi
|
||||
|
||||
export EDITOR="vim"
|
||||
export GREP_COLOR="1;33"
|
||||
export GOPATH="$HOME/projects/go"
|
||||
export HISTCONTROL="ignoredups"
|
||||
export PATH="$PATH:~/bin:~/.gem/ruby/2.3.0/bin"
|
||||
export WORKON_HOME="~/.virtualenvs"
|
||||
|
||||
alias diff="colordiff"
|
||||
alias grep="grep --color=auto"
|
||||
alias egrep="egrep --color=auto"
|
||||
LIB='lib' alias fixsteam="LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam"
|
||||
alias gst="git status"
|
||||
alias ls="ls --color=always"
|
||||
alias l="ls"
|
||||
alias la="ls -a"
|
||||
alias ll="ls -l"
|
||||
alias lla="ls -la"
|
||||
alias mkdir="mkdir -p -v"
|
||||
alias restricted-vim="rvim -Zi NONE"
|
||||
alias rot13="tr a-zA-Z n-za-mN-ZA-M"
|
||||
alias tmux="TERM=screen-256color-bce tmux"
|
||||
alias updick='/usr/bin/uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\n\""'
|
||||
|
||||
if [[ $(command -v dircolors) ]] ; then
|
||||
eval $(dircolors -b)
|
||||
fi
|
||||
|
||||
# Arch linux package search
|
||||
if [[ $(command -v aura) ]] ; then
|
||||
function psearch() {
|
||||
aura -Ss $1
|
||||
aura -As $1
|
||||
}
|
||||
fi
|
||||
|
||||
# Base16 Shell
|
||||
BASE16_SHELL="$HOME/.config/base16-shell/scripts/base16-default-dark.sh"
|
||||
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
|
||||
|
||||
# Virtualenv wrapper
|
||||
[[ -s /usr/bin/virtualenvwrapper.sh ]] && source /usr/bin/virtualenvwrapper.sh
|
||||
|
||||
# AWS
|
||||
[[ -f $HOME/.aws ]] && source "$HOME/.aws"
|
||||
@ -1,6 +1,9 @@
|
||||
#!/bin/sh
|
||||
SCRIPTDIR="${HOME}/code/scriptamanent"
|
||||
|
||||
# bash
|
||||
ln -s "${SCRIPTDIR}/.bashrc" "${HOME}"
|
||||
|
||||
# tmux
|
||||
ln -s "${SCRIPTDIR}/.tmux.conf" "${HOME}"
|
||||
mkdir -p ~/tmux/plugins
|
||||
|
||||
Loading…
Reference in New Issue
Block a user