Guest User

Untitled

a guest
Nov 16th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #
  2. # ~/.bashrc
  3. #
  4.  
  5. # Allow ctrl+shift+t to open in current directory for termite
  6. source /etc/profile.d/vte.sh
  7.  
  8. # If not running interactively, don't do anything
  9. [[ $- != *i* ]] && return
  10.  
  11. PS1='[\u@\h \W]\$ '
  12.  
  13. # Aliases
  14. alias ls='ls --color=auto'
  15. alias gs='git status'
  16. alias ga='git add'
  17. alias gc='git commit'
  18.  
  19. # Powerline
  20. powerline-daemon -q
  21. POWERLINE_BASH_CONTINUATION=1
  22. POWERLINE_BASH_SELECT=1
  23. . /usr/share/powerline/bindings/bash/powerline.sh
  24.  
  25. # Golang
  26. export PATH=$PATH:/usr/local/go/bin
  27. export GOROOT=/usr/local/go
  28. export GOPATH=~/dev/cwn/go
  29. export PATH=$PATH:$GOPATH/bin
  30.  
  31. # Set CWN Path
  32. export CWN_SOURCE_DIR=~/dev/cwn
  33.  
  34. # Set Python at v2
  35. export PATH=~/bin:$PATH
  36.  
  37. # protoc
  38. export PATH=$PATH:~/dev/cwn/third_party/protoc/linux
  39.  
  40. # The next line updates PATH for the Google Cloud SDK.
  41. if [ -f '/usr/local/google-cloud-sdk/path.bash.inc' ]; then . '/usr/local/google-cloud-sdk/path.bash.inc'; fi
  42.  
  43. # The next line enables shell command completion for gcloud.
  44. if [ -f '/usr/local/google-cloud-sdk/completion.bash.inc' ]; then . '/usr/local/google-cloud-sdk/completion.bash.inc'; fi
  45.  
  46. # fzf go to directory
  47. fd() {
  48. local dir
  49. dir=$(find ${1:-.} -path '*/\.*' -prune \
  50. -o -type d -print 2> /dev/null | fzf +m) &&
  51. cd "$dir"
  52. }
  53.  
  54. # fzf
  55. export FZF_DEFAULT_COMMAND='rg --hidden -l ""'
Add Comment
Please, Sign In to add comment