-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
87 lines (68 loc) · 1.85 KB
/
Copy pathbash_profile
File metadata and controls
87 lines (68 loc) · 1.85 KB
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
# User specific aliases and functions
# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
## PATH
# local
export PATH=~/.bin:/usr/local/bin:"${PATH}:"
# heroku
export PATH="/usr/local/heroku/bin:$PATH"
# twig-lint
# export PATH=~/.bin:/usr/local/bin:"~/.composer/vendor/bin/twig-lint"
# /Users/kozlov/.composer/vendor/asm89/twig-lint/bin/twig-lint
export PATH="/Users/kozlov/.composer/vendor/asm89/twig-lint/bin/:$PATH"
# Autocomplete
complete -cf sudo
complete -cf man
# Append history
shopt -s histappend
PROMPT_COMMAND='history -a; history -n'
# History ignore
export HISTCONTROL="ignoredups"
export HISTIGNORE="&:ls:l:ll:la:exit:su"
# Prevent overwriting files
set -o noclobber
# Color grep
export GREP_OPTIONS="--color=auto"
# Git prompt
#source ~/.git-prompt.sh
# Aliases
alias ls='ls -FG'
alias ..='cd ..'
alias cd..='cd ..'
alias df='df -h'
alias du='du -h'
alias mc='mc -c'
alias l='ls -lhG'
alias la='ls -AFG'
alias li='ls -lhiG'
alias ll='ls -lAG'
alias clr='clear'
alias rm='rm -f'
alias urar='unrar x'
alias uzip='unzip -x'
alias enhance='function ne() { docker run --rm -v "$(pwd)/`dirname ${@:$#}`":/ne/input -it alexjc/neural-enhance ${@:1:-1} "input/`basename ${@:$#}`"; }; ne'
# Prompt
#PS1='\[\e[1;32m\]\
#[\u@\h \
#\[\e[m\]\
#\w\
#\[\e[1;32m\]\
#$(__git_ps1 " (%s)")\
#]\n \[\e[1;32m\]\$ \
#\[\e[m\]'
# Terminal colors
export LSCOLORS=gxFxCxDxBxegedabagacad
# Default editor
export EDITOR="nano"
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export NVM_DIR="/Users/aakozlov/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
PHP_AUTOCONF="/usr/local/bin/autoconf"
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH