├── .gitignore ├── README.md ├── bash_profile └── bashrc /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *~ 3 | *.tmp 4 | tags 5 | 6 | .MTREE 7 | .PKGINFO 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | BlackArch Linux configuration files for bash shell. 4 | 5 | ## Installation 6 | 7 | `pacman -S blackarch-config-bash` 8 | 9 | ## Configuration 10 | 11 | Copy the following files: 12 | 13 | 1. `cp -a /usr/share/blackarch/config/bash/bashrc ~/.bashrc` 14 | 2. `cp -a /usr/share/blackarch/config/bash/bash_profile ~/.bash_profile` 15 | 16 | ## Get Involved 17 | 18 | You can get in touch with the BlackArch Linux team. Just check out the following: 19 | 20 | **Please, send us pull requests!** 21 | 22 | **Web:** https://www.blackarch.org/ 23 | 24 | **Mail:** team@blackarch.org 25 | 26 | **IRC:** [irc://irc.freenode.net/blackarch](irc://irc.freenode.net/blackarch) 27 | -------------------------------------------------------------------------------- /bash_profile: -------------------------------------------------------------------------------- 1 | # 2 | # ~/.bash_profile 3 | # 4 | 5 | [[ -f ~/.bashrc ]] && . ~/.bashrc 6 | -------------------------------------------------------------------------------- /bashrc: -------------------------------------------------------------------------------- 1 | # colors 2 | darkgrey="$(tput bold ; tput setaf 0)" 3 | white="$(tput bold ; tput setaf 7)" 4 | blue="$(tput bold; tput setaf 4)" 5 | cyan="$(tput bold; tput setaf 6)" 6 | nc="$(tput sgr0)" 7 | 8 | # exports 9 | export PATH="${HOME}/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:" 10 | export PATH="${PATH}/usr/local/sbin:/opt/bin:/usr/bin/core_perl:/usr/games/bin:" 11 | 12 | if [[ $EUID -eq 0 ]]; then 13 | export PS1="\[$blue\][ \[$cyan\]\H \[$darkgrey\]\w\[$darkgrey\] \[$blue\]]\\[$darkgrey\]# \[$nc\]" 14 | else 15 | export PS1="\[$blue\][ \[$cyan\]\H \[$darkgrey\]\w\[$darkgrey\] \[$blue\]]\\[$cyan\]\$ \[$nc\]" 16 | fi 17 | 18 | export LD_PRELOAD="" 19 | export EDITOR="vim" 20 | 21 | # alias 22 | alias ls="ls --color" 23 | alias vi="vim" 24 | alias shred="shred -zf" 25 | #alias python="python2" 26 | alias wget="wget -U 'noleak'" 27 | alias curl="curl --user-agent 'noleak'" 28 | 29 | # source files 30 | [ -r /usr/share/bash-completion/completions ] && 31 | . /usr/share/bash-completion/completions/* 32 | --------------------------------------------------------------------------------