Без опису

12345678910111213141516171819202122232425262728
  1. alias brc='source ~/.bashrc'
  2. # LISTING
  3. alias ll='ls -la --color=auto'
  4. alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
  5. # CHANGE DIR
  6. alias ..='cd ..'
  7. alias ...='cd ../../'
  8. alias ....='cd ../../../'
  9. alias .....='cd ../../../../'
  10. function mcd() {
  11. mkdir -p "$1" && cd "$1";
  12. }
  13. # GREP
  14. alias tm='ps -ef | grep'
  15. # GIT
  16. alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  17. alias gs="git status"
  18. gwd(){
  19. default="1 day ago"
  20. git log --committer=me@prellele.de --pretty=format:"%Cgreen%ar (%h)%n%Creset> %s %b%n" --since="${1:-$default}" --no-merges
  21. }