2 Commits

Author SHA1 Message Date
  Pekka Helenius a0c10e646a Update README 2 years ago
  Pekka Helenius fb2de680e7 Add bash.bashrc 2 years ago
2 changed files with 36 additions and 2 deletions
Unified View
  1. +9
    -2
      README.md
  2. +27
    -0
      bash.bashrc

+ 9
- 2
README.md View File

@ -4,15 +4,22 @@ Various command line tools for Arch Linux
## About ## About
This repository has various practical developer/sysadmin-oriented tools to Arch Linux.
This repository has various practical developer/sysadmin-oriented tools for Arch Linux.
---------------------- ----------------------
## Contents ## Contents
- `bash.bashrc`
- Drop into `/etc/` system folder
- Use with `bash.custom` file
- `bash.custom` - `bash.custom`
- Enable various customizations to your bash environment. Intention is to make life little bit easier to sysadmins when they work in shell environments.
- Drop into `/etc/` system folder or install using [PKGBUILD](tools/PKGBUILD)
- Enable various customizations in your bash environment
- Improve usability and visual feedback of bash shell
### [tools](tools) ### [tools](tools)


+ 27
- 0
bash.bashrc View File

@ -0,0 +1,27 @@
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[ $DISPLAY ] && shopt -s checkwinsize
#shopt -s direxpand
[ -f /etc/bash.custom ] && . /etc/bash.custom || PS1="[\u@\h \W]\$ "
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
# Fix dollar sign escape
shopt -u progcomp

Loading…
Cancel
Save