Advertisement
iyan_squid

install powerline

Aug 14th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. $ sudo apt-get install python-pip git
  2. $ sudo pip install --user git+git://github.com/Lokaltog/powerline
  3. Lalu edit file .profile yang ada di folder home kalian.
  4. $ nano /home/uzumaki/.profile
  5. Masukkan kode berikut di baris bawah .
  6.  
  7. if [ -d "$HOME/.local/bin" ];
  8. then PATH="$HOME/.local/bin:$PATH"
  9. fi
  10.  
  11. Setelah di save, masukkan command :
  12. $ su -c 'pip install git+git://github.com/Lokaltog/powerline'
  13. Selanjutnya menginstall powerline symbol,
  14. $ wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf
  15. $ wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
  16. $ sudo mv PowerlineSymbols.otf /usr/share/fonts/
  17. $ sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
  18. $ fc-cache -vf
  19. $ git clone https://github.com/Lokaltog/powerline-fonts.git
  20. $ sudo mv powerline-fonts/ /usr/share/fonts/truetype
  21. $ fc-cache -vf
  22.  
  23. Selanjutnya tahap penginstallan powerline-shell
  24. $ git clone https://github.com/milkbikis/powerline-shell
  25. $ cd powerline-shell
  26. $ cp config.py.dist config.py
  27. $ ./install.py
  28. $ sudo cp powerline-shell.py /root
  29. $ cp powerline-shell.py /home/uzumaki/
  30.  
  31. Sekarang tahap pengeditan script bashrc ( karena saya menggunakan bash. untuk shell lain silahkan sesuaikan, contohnya zsh ada di .zshrc , namun script nya harus diedit sedikit) .
  32.  
  33. $ mv .bashrc .bashrc.backup
  34. $ nano .bashrc
  35. Maka akan terbuka file kosong.
  36. Masukkan script powerline-shell script berikut ke dalamnya.
  37. Download Script Powerline Bash
  38.  
  39. Jika sudah di save, tinggal close terminal, dan buka lagi.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement