diff options
| author | jason | 2020-09-25 11:17:56 -0600 |
|---|---|---|
| committer | jason | 2020-09-25 11:17:56 -0600 |
| commit | 3c3f27b57d347c2c58d2aca65e6e8094d1347c1c (patch) | |
| tree | b10e3733b45a641f521526942c83572f615cfbe1 /bash | |
| parent | e787561d6e2ab5ad63ba9a4c8fc7fd9d07519361 (diff) | |
| download | dotfiles-3c3f27b57d347c2c58d2aca65e6e8094d1347c1c.tar.gz dotfiles-3c3f27b57d347c2c58d2aca65e6e8094d1347c1c.zip | |
new fonts;bashrc;dunstrc for i3
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..3e19db3 --- /dev/null +++ b/bash/.bashrc | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] " | ||
| 2 | PATH="${HOME}/bin:${PATH}" | ||
| 3 | |||
| 4 | TERM="xterm-256color" | ||
| 5 | |||
| 6 | # direnv's use_nix will overwrite TMPDIR so it needs to be hard coded to /tmp/ | ||
| 7 | #EMACS_SERVER_SOCKET="${TMPDIR:-/tmp}/emacs$(id -u)/server" | ||
| 8 | EMACS_SERVER_SOCKET="/tmp/emacs$(id -u)/server" | ||
| 9 | EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}" | ||
| 10 | alias e="${EDITOR}" | ||
| 11 | |||
| 12 | # History settings | ||
| 13 | #export HISTTIMEFORMAT="[%F %T] " | ||
| 14 | export HISTSIZE= # Store unlimited entries. Default: 500 | ||
| 15 | export HISTFILESIZE= # Unlimited file size | ||
| 16 | shopt -s histappend # append entries rather than overwrite | ||
| 17 | shopt -s cmdhist # Store multi-line commands as a single line | ||
| 18 | # Store history immediately | ||
| 19 | export PROMPT_COMMAND="history -a;history -r; ${PROMPT_COMMAND}" | ||
| 20 | export HISTCONTROL="ignoredups" | ||
| 21 | export HISTIGNORE="ls:cd" | ||
| 22 | |||
| 23 | # Aliases | ||
| 24 | #alias fixfileperm='find /music -type f -exec chmod 0644 {} \;' | ||
| 25 | #alias cleanremotebranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin' | ||
| 26 | alias ducks='du -cks * |sort -rn |head -11' | ||
| 27 | alias define='sdcv' | ||
| 28 | #alias cleanstale="git clean -fd -e'!__pycache__' -e'!*.py[cod]'" | ||
| 29 | #alias dry-cleanstale="git clean -fdn -e'!__pycache__' -e'!*.py[cod]'" | ||
| 30 | |||
| 31 | # Enable firefox touchscreen scrolling | ||
| 32 | export MOZ_USE_XINPUT2=1 | ||
| 33 | |||
| 34 | # GPG ssh key | ||
| 35 | #export GPG_TTY=$(tty) | ||
| 36 | #export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" | ||
| 37 | |||
| 38 | # Enable direnv (https://github.com/direnv/direnv/) | ||
| 39 | DIRENV=`which direnv` | ||
| 40 | if [ -x $DIRENV ]; then | ||
| 41 | eval "$(direnv hook bash)" | ||
| 42 | fi | ||
| 43 | |||
| 44 | # Enable warpdir (https://rc4.net/wd-rs/) | ||
| 45 | WARPDIR=`which warpdir` | ||
| 46 | if [[ -x $WARPDIR ]]; then | ||
| 47 | eval "$(warpdir hook bash)" | ||
| 48 | fi | ||