aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2020-09-25 11:17:56 -0600
committerjason2020-09-25 11:17:56 -0600
commit3c3f27b57d347c2c58d2aca65e6e8094d1347c1c (patch)
treeb10e3733b45a641f521526942c83572f615cfbe1 /bash
parente787561d6e2ab5ad63ba9a4c8fc7fd9d07519361 (diff)
downloaddotfiles-3c3f27b57d347c2c58d2aca65e6e8094d1347c1c.tar.gz
dotfiles-3c3f27b57d347c2c58d2aca65e6e8094d1347c1c.zip
new fonts;bashrc;dunstrc for i3
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc48
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 @@
1PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] "
2PATH="${HOME}/bin:${PATH}"
3
4TERM="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"
8EMACS_SERVER_SOCKET="/tmp/emacs$(id -u)/server"
9EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}"
10alias e="${EDITOR}"
11
12# History settings
13#export HISTTIMEFORMAT="[%F %T] "
14export HISTSIZE= # Store unlimited entries. Default: 500
15export HISTFILESIZE= # Unlimited file size
16shopt -s histappend # append entries rather than overwrite
17shopt -s cmdhist # Store multi-line commands as a single line
18# Store history immediately
19export PROMPT_COMMAND="history -a;history -r; ${PROMPT_COMMAND}"
20export HISTCONTROL="ignoredups"
21export 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'
26alias ducks='du -cks * |sort -rn |head -11'
27alias 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
32export 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/)
39DIRENV=`which direnv`
40if [ -x $DIRENV ]; then
41 eval "$(direnv hook bash)"
42fi
43
44# Enable warpdir (https://rc4.net/wd-rs/)
45WARPDIR=`which warpdir`
46if [[ -x $WARPDIR ]]; then
47 eval "$(warpdir hook bash)"
48fi