My .dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bash.conf 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export EDITOR=/usr/bin/nano
  2. source /usr/share/defaults/etc/profile
  3. source ~/pureline/pureline ~/.pureline.conf
  4. # -------------------------------
  5. # 1. Aliases
  6. # -------------------------------
  7. alias cd..='cd ..'
  8. alias snano='sudo nano'
  9. alias df='df -h'
  10. alias myip='curl ip4.iurl.no && echo'
  11. alias myip6='curl ip6.iurl.no && echo'
  12. alias neo='neofetch'
  13. alias ll='ls -la'
  14. alias sup='sudo eopkg up'
  15. alias cbash='nano /home/rune/.config/dotfiles/bash.conf'
  16. alias cl='clear'
  17. alias pass=' openssl rand -base64 20|xsel -i'
  18. # -------------------------------
  19. # 1.1 Git Aliases
  20. # -------------------------------
  21. alias gitinit='git init && git add . && git commit -m "inital commit"'
  22. alias gs='git status'
  23. alias gc='git commit'
  24. alias gp='git push'
  25. alias gma='git commit -am'
  26. alias gm='git commit -m'
  27. alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
  28. alias gsd='git svn dcommit'
  29. alias gsfr='git svn fetch && git svn rebase'
  30. # -------------------------------
  31. # 2. Functions
  32. # -------------------------------
  33. gist() { a=$(cat); curl -X POST -s -d "$a" https://gist.gitlab.no/documents | awk -F '"' '{print "https://gist.gitlab.no/"$4}'; }
  34. ii() {
  35. echo -e "\nYou are logged on ${RED}$HOST"
  36. echo -e "\nAdditionnal information:$NC " ; uname -a
  37. echo -e "\n${RED}Users logged on:$NC " ; w -h
  38. echo -e "\n${RED}Current date :$NC " ; date
  39. echo -e "\n${RED}Machine stats :$NC " ; uptime
  40. echo -e "\n${RED}Public facing IP Address :$NC " ;myip
  41. echo
  42. }
  43. # -------------------------------
  44. # Finalize with a clear screen
  45. # -------------------------------
  46. clear