forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
37 lines (30 loc) · 771 Bytes
/
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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Command not Found?
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh
# Auto cd when just a patch
shopt -s autocd
# Check for Windows resize
shopt -s checkwinsize
PATH=$PATH:/home/snx/.gem/ruby/2.2.0/bin
export PATH
# Aliases
alias ls='ls --color=auto'
alias fuck='sudo $(history -p \!\!)'
alias ..='cd ..'
alias cd..='cd ..'
alias ll='ls -la'
alias hla='vim ~/dotfiles/herbstluftwm/autostart'
alias bashrc='vim ~/.bashrc'
alias vimrc='vim ~/.vimrc'
PS1='[\u@\h \W]\$ '
# Python :D
venv() {
local activate=~/.python/$1/bin/activate
if [ -e "$activate" ] ; then
source "$activate"
else
echo "Error: Not found: $activate"
fi
}
venv27() { venv 27 ; }