Refactor shellenv/setup for better performance

This commit is contained in:
2016-08-16 15:26:50 -07:00
parent afff5ec4a9
commit e2c5cd6033
6 changed files with 156 additions and 137 deletions

View File

@@ -1,3 +1,7 @@
function get_python_scripts_path {
python -c "import sysconfig; print sysconfig.get_path('scripts')"
}
function path_lines {
local python_command
# We need to get a path to the ACTUAL python command because
@@ -148,17 +152,6 @@ function is_ssh() {
test $SSH_CLIENT
}
function is_osx() {
case `uname` in
'Darwin')
return 0
;;
*)
return 1;
;;
esac
}
# TODO: Remove this.
alias clipboard='oscopy'