Refactor shellenv/setup for better performance
This commit is contained in:
@@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user