Explorar el Código

~/.bashrc: Aliases for /bin/ls and diff -u, add J to PATH.

Lucas Stadler %!s(int64=14) %!d(string=hace) años
padre
commit
04242ee5f1
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      .bashrc

+ 3 - 2
.bashrc

@ -1,10 +1,11 @@
1 1
# shortcuts
2
alias _ls='ls --color=auto'
2
alias _ls='/bin/ls --color=auto'
3 3
alias ls='~/t/ls--/ls++'
4 4
alias v='~/t/sh/v/v'
5 5
alias here='find . -type f -name '
6 6
# Find targets in a Makefile: targets <makefile>
7 7
alias targets='grep -E "^[-A-Za-z0-9]+:"'
8
alias diff='diff -u'
8 9
9 10
## archlinux
10 11
alias _ps="pacman -Ss"
@ -33,7 +34,7 @@ ds() { du -ch $@ | tail -n1; }
33 34
# bash-completion for sudo
34 35
complete -cf sudo
35 36
36
for path in .bin .cabal ruby-1.9.4dev erlang-git nodejs .lang-ghc-7.4.1; do
37
for path in .bin .cabal ruby-1.9.4dev erlang-git nodejs .lang_ghc-7.4.1 .lang_j701a; do
37 38
	if [ -d "$HOME/$path/bin" ]; then bindir="bin"; fi
38 39
	PATH="$HOME/$path/$bindir:$PATH"
39 40
done