Guest User

Untitled

a guest
Aug 12th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. programs.zsh = {
  2. enable = true;
  3. autocd = true;
  4. enableCompletion = true;
  5. enableAutosuggestions = true;
  6.  
  7. oh-my-zsh = {
  8. enable = true;
  9. theme = "robbyrussell";
  10. plugins=["git" "tmux" "docker" "python" "vi-mode" "systemd" "z" "kubectl"];
  11. };
  12.  
  13. sessionVariables = rec {
  14. EDITOR = "nvim";
  15. GOPATH = "$HOME/go";
  16. GOBIN = "$GOPATH/bin";
  17. PATH = "$PATH:$GOBIN";
  18. KUBECONFIG = "$HOME/.kube/xxx";
  19. CONSUL_HTTP_ADDR = "xxx";
  20. AWS_PROFILE = "stage";
  21. };
  22.  
  23. shellAliases = rec {
  24. fixup = "git commit -am fixup";
  25. amend = "git commit --all --amend --no-verify";
  26. elastic = "docker run -p 5000:5000 -e url=xxx elastichq/elasticsearch-hq";
  27. };
  28.  
  29. initExtra = ''
  30. if [[ -n $VIRTUAL_ENV && -e "$VIRTUAL_ENV/bin/activate" ]]; then
  31. source "$VIRTUAL_ENV/bin/activate"
  32. fi
  33.  
  34. delete_test_ns () {
  35. while read -r line
  36. do
  37. if [ $(echo $line | grep -E -o "[0-9]+") -le $1 ]
  38. then
  39. mft env delete --namespace $line
  40. fi
  41. done <<< $(k get namespaces | grep -e mft-consumer-api-automation | awk '{ print $1 }')
  42. }
  43.  
  44. '';
  45. };
Add Comment
Please, Sign In to add comment