From a32e5810dd2112b7dcb676ae1961231ccfe795fa Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 25 Oct 2018 18:55:16 +0100 Subject: [PATCH] Remove home bin directory --- files/bin/json_format | 20 -------------------- files/zshrc/environment.sh | 1 - tasks/shell.yml | 8 -------- 3 files changed, 29 deletions(-) delete mode 100755 files/bin/json_format diff --git a/files/bin/json_format b/files/bin/json_format deleted file mode 100755 index 0a0f440..0000000 --- a/files/bin/json_format +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 -import json -import sys -import os - -ARGS = sys.argv[1:] - -if not os.isatty(0): - data = sys.stdin.read() -else: - with open(ARGS.pop(0)) as f: - data = '\n'.join(f.readlines()) - -parsed_data = json.dumps(json.loads(data), indent=2, sort_keys=True) - -if ARGS: - with open(ARGS[0], 'w') as f: - f.write(parsed_data) -else: - sys.stdout.write(parsed_data) diff --git a/files/zshrc/environment.sh b/files/zshrc/environment.sh index 8701857..1447e92 100644 --- a/files/zshrc/environment.sh +++ b/files/zshrc/environment.sh @@ -3,7 +3,6 @@ export PATH=${PATH}:${ANDROID_HOME}/tools export PATH=${PATH}:${ANDROID_HOME}/platform-tools export PATH=${PATH}:/opt/genymobile/genymotion -export PATH=${PATH}:${HOME}/.bin export DOTFILES=${HOME}/.dotfiles diff --git a/tasks/shell.yml b/tasks/shell.yml index b7a466e..5448060 100644 --- a/tasks/shell.yml +++ b/tasks/shell.yml @@ -7,14 +7,6 @@ backup: true trim_blocks: false -- copy: - src: ./files/bin - dest: "{{ home }}/.bin" - mode: 0755 - owner: "{{ user }}" - group: users - directory_mode: true - - template: src: ./files/global-environment dest: /etc/environment