-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
37 lines (33 loc) · 939 Bytes
/
bashrc
File metadata and controls
37 lines (33 loc) · 939 Bytes
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
# ~/.bashrc: executed by bash(1) for non-login shells.
umask 022
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bin/X11:/usr/games:/usr/local/exim/bin
export PS1="\[\033[32m\][\u@\h]:\w\\$\[\033[0m\] "
export EDITOR=vim
export PAGER=less
# shortcurts
alias ls='ls -F --color=auto'
alias v='ls -l'
alias d="ls"
alias va='ls -la'
alias ll='ls -la'
alias la='ls -a'
alias lss='ls -1s'
alias t='telnet'
alias n='nslookup'
alias p='ping'
alias tc='/usr/sbin/traceroute'
alias k='killall -9'
alias joe='joe -nobackups -lightoff -marking -asis'
alias jo='joe'
alias les='less'
alias c="clear"
alias inject="eject -t"
alias dfh="df -h | head"
alias grpe="grep"
alias dmesg="dmesg -T"
# extras
alias tt="awk '{if (\$1 && \$1 !~ /#/) print}'"
# git stuff
alias gl="git log --graph --decorate --pretty=oneline --abbrev-commit --all"
alias gss="git status"
git config --global alias.undo-commit 'reset --soft HEAD^'