This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jvm() { | |
local cmd="$1" | |
local java_root="/Library/Java/JavaVirtualMachines/" | |
case "$cmd" in | |
list ) | |
find "$java_root" -maxdepth 1 | grep 'jdk.*\.jdk' | gsed 's/.*jdk\(.*\)\.jdk$/\1/' ;; | |
use ) | |
local version="$2" | |
local home="$java_root/jdk${version}.jdk/Contents/Home/" | |
if [ -d "$home" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/variables.c b/variables.c | |
index 92a5a10..b485dab 100644 | |
--- a/variables.c | |
+++ b/variables.c | |
@@ -347,39 +347,6 @@ initialize_shell_variables (env, privmode) | |
temp_var = (SHELL_VAR *)NULL; | |
- /* If exported function, define it now. Don't import functions from | |
- the environment in privileged mode. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: shiftwidth=2 expandtab foldmethod=marker | |
// include {{{ | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
#include <set> | |
#include <map> | |
#include <queue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax clear | |
syntax match expr_name /\K\k*/ nextgroup=B | |
syntax region outer | |
\ start=/(/ end=/)/ | |
\ contains=inner | |
syntax region inner | |
\ start=/(/ end=/)/ |
OlderNewer