commit | author | age
|
a67156
|
1 |
#aliases |
9958c8
|
2 |
if [ -z "${OSTYPE##*darwin*}" ]; then |
417f72
|
3 |
#Mac OSX specific versions |
JG |
4 |
alias ls="ls -G" |
6db5b8
|
5 |
[ -d /usr/local/opt/llvm/bin ] && PATH="$PATH:/usr/local/opt/llvm/bin" |
417f72
|
6 |
else |
JG |
7 |
#Linux + others as default |
|
8 |
alias ls="ls --color=auto" |
|
9 |
alias scoff="xset dpms force off" |
|
10 |
fi |
a67156
|
11 |
alias l="ls -laF" |
J |
12 |
alias grep="grep --color=always" |
|
13 |
alias less='less -r' |
4757e9
|
14 |
function stats() { |
JG |
15 |
find ${1:-'.'} -type f -print | sed -E -n 's/.+(\..*)$/\1/pi' | sort | uniq -c | sort -g |
|
16 |
} |
a67156
|
17 |
|
73aeec
|
18 |
alias pip-upgrade="python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 python -m pip install -U" |
a71b85
|
19 |
|
c827ad
|
20 |
#export EDITOR="/usr/bin/emacsclient -nw -a /usr/bin/vim" |
JG |
21 |
#alias ec=$EDITOR |
bce0ce
|
22 |
alias ec="/usr/bin/emacsclient -nw -a /usr/bin/vim" |
6db5b8
|
23 |
[ -n "$(whereis vim)" ] && export EDITOR="/usr/bin/vim" |
a67156
|
24 |
|
J |
25 |
#default wine prefix |
6db5b8
|
26 |
[ -n "$(whereis wine)" ] && export WINEPREFIX=$HOME/.wine/Games/ |
JG |
27 |
[ -n "$(whereis steam)" ] && export STEAM_COMPAT_DATA_PATH=$HOME/proton |
a67156
|
28 |
|
J |
29 |
# add to path |
|
30 |
export PATH=$PATH:~/.local/bin |
031336
|
31 |
[ -r /usr/bin/ruby ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" |
03128d
|
32 |
[ -d ~/.cargo ] && PATH="$PATH:$HOME/.cargo/bin" |