-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.bashrc
26 lines (18 loc) · 873 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
stty -ixon # Disable ctrl-s and ctrl-q.
# shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
HISTSIZE= HISTFILESIZE= # Infinite history.
printf '\033[?1h\033=' >/dev/tty
bind 'set completion-ignore-case on'
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
# Use same history file for zsh and bash
export HISTFILE=$HOME/.sh_history
# Enable gpg signing over ssh
export GPG_TTY=$(tty)
# Fix ssh for some terminals
export TERM=xterm-256color
source "$HOME/.config/aliasrc"
source "$HOME/.config/functionrc"
# Load grc aliases
[[ -s "/etc/grc.bashrc" ]] && source /etc/grc.bashrc