-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
42 lines (31 loc) · 1 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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# show username@hostname and the full path
# the \[ \] pairs enclose non-printable characters so bash does not count them
# toward a line width so wrapping is nice
color=$(tput setaf 5) # 1-7 are red, green, yellow, blue, purple, cyan, white
reset=$(tput sgr0) # \e[0m
PS1='\[$color\][\u@\h \w]\$ \[$reset\]'
# nobody uses capslock --- make caps and ctrl both ctrl
/usr/bin/setxkbmap -option "ctrl:nocaps"
# load private settings (machine-specific)
[ -f ~/.private-config.sh ] && source .private-config.sh
export EDITOR='emacs -nw'
# get nice colors using ls
alias ls='ls --color=auto'
# when I fuck up ls it still works
alias l='ls'
alias sl='ls'
alias s='ls'
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lh='ls -lh'
alias lah='ls -lah'
alias lha='ls -lah'
alias clera=clear
# get nice colors with grep
alias grep='grep --color'
# easily and nicely open files
alias open='xdg-open'
export PATH=/home/david/.local/bin:$PATH