Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #
  2. # ~/.bashrc
  3. #
  4.  
  5. # If not running interactively, don't do anything
  6. [[ $- != *i* ]] && return
  7.  
  8. PS1='[\u@\h \W]\$ '
  9. EDITOR=/usr/bin/gedit
  10. export PATH=$PATH:/home/thiphariel/Android/Sdk/emulator
  11.  
  12. # Run screenfetch on launch
  13. if [ -f /usr/bin/screenfetch ]; then screenfetch; fi
  14.  
  15. # Alias
  16. alias ls='ls --color=auto'
  17. alias gbashrc='gedit ~/.bashrc'
  18.  
  19. # Functions aliases
  20. avd() {
  21. # Try if an argument is provided, else, launch the first founded emulator
  22. if [ -z "$1" ]; then
  23. AVD_NAME=$(emulator -list-avds | head -n 1)
  24. else
  25. AVD_NAME=$1
  26. fi
  27.  
  28. emulator @$AVD_NAME &
  29. disown
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement