-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
87 lines (68 loc) · 2.46 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# ~/.bashrc
#
# Set environmental variables
export TERMCMD='st -e '
export TERMINAL='st'
export VISUAL='vim'
export EDITOR=$VISUAL
export _JAVA_AWT_WM_NONREPARENTING=1
export XDG_CONFIG_HOME="$HOME/.config/"
export QT_QPA_PLATFORMTHEME="gtk2"
export GTK_THEME="FlatColor:dark"
export INPUTRC='~/.inputrc'
# Home clean up.
# TODO: MOVE THIS TO ANOTHER FILE. IN $XDG_CONFIG_HOME, IDEALLY.
alias cataclysm="cataclysm --configdir $XDG_CONFIG_HOME/.config/cataclysm-dda"
alias cmines="cmines -s $XDG_CONFIG_HOME/cminesrc"
alias crawl="crawl -dir $XDG_CONFIG_HOME/crawl"
alias abook="abook -C $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Prompt
#PS1='\A \[\e[0;31m\][\[\e[0;33m\]\u\[\e[m\]@\[\e[0;34m\]\h\[\e[m\] \[\e[0;96m\]\w\[\e[0;31m\]]\[\e[m\]\$ '
# Almost above, but a million times more readable.
# Also more portable, can be used in mksh just by removing the
# '\[ \]'s needed by bash.
promptred="\[$(tput setaf 1)\]"
promptblue="\[$(tput setaf 4)\]"
promptyellow="\[$(tput setaf 3)\]"
promptcyan="\[$(tput setaf 6)\]"
promptclear="\[$(tput sgr0)\]"
PS1="\$(date +%H%M) $promptclear""$promptred"'['"$promptyellow""\$USER""$promptclear"'@'"$promptblue""${HOSTNAME:-$(hostname)}""$promptclear"':'"$promptcyan""\${PWD##/home/dther/}""$promptred"']'"$promptclear"'$ '
### Useful Aliases ###
# system commands
alias ls='ls --color=auto'
alias pacman='pacman --color auto'
alias info='info --vi-keys'
# for interacting with the git bare repository
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
config config status.showUntrackedFiles no
# suckless thefuck replacement
alias pls='sudo'
alias please='pls'
alias fudge='sudo sh -c "$(fc -ln -1)"'
alias heck='fudge'
alias darn='fudge'
alias crap='fudge'
alias fuck="echo Y\'know, don\'t say swears."
### Program Specific Aliases ###
# because screw limited passes, man.
# If it takes you more passes than 999 you suck at solitaire
alias ttysolitaire='ttysolitaire --no-background-color -p 999'
# terminal aesthetic B-)
alias angband='angband -mgcu'
# todo.sh alias
alias td="todo.sh -tc"
alias todo="td"
alias backlog="td -d ~/.todo/backlogconf"
alias bibleplan="td -aTd ~/.todo/bible"
# imagine using nano
alias nano="echo How about naNO && sleep 0.5 && vim"
# avoid rm, it's easy to make horrible mistakes
alias rm="echo You probably want \'trash\'. && rm -vi"
# Run stuff
pfetch
printf "\n"
td ls
colorwhen.sh --future=5