Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- programs.zsh = {
- enable = true;
- autocd = true;
- enableCompletion = true;
- enableAutosuggestions = true;
- oh-my-zsh = {
- enable = true;
- theme = "robbyrussell";
- plugins=["git" "tmux" "docker" "python" "vi-mode" "systemd" "z" "kubectl"];
- };
- sessionVariables = rec {
- EDITOR = "nvim";
- GOPATH = "$HOME/go";
- GOBIN = "$GOPATH/bin";
- PATH = "$PATH:$GOBIN";
- KUBECONFIG = "$HOME/.kube/xxx";
- CONSUL_HTTP_ADDR = "xxx";
- AWS_PROFILE = "stage";
- };
- shellAliases = rec {
- fixup = "git commit -am fixup";
- amend = "git commit --all --amend --no-verify";
- elastic = "docker run -p 5000:5000 -e url=xxx elastichq/elasticsearch-hq";
- };
- initExtra = ''
- if [[ -n $VIRTUAL_ENV && -e "$VIRTUAL_ENV/bin/activate" ]]; then
- source "$VIRTUAL_ENV/bin/activate"
- fi
- delete_test_ns () {
- while read -r line
- do
- if [ $(echo $line | grep -E -o "[0-9]+") -le $1 ]
- then
- mft env delete --namespace $line
- fi
- done <<< $(k get namespaces | grep -e mft-consumer-api-automation | awk '{ print $1 }')
- }
- '';
- };
Add Comment
Please, Sign In to add comment