private void updatePrompt(CommandInvocation commandInvocation, Resource file) { commandInvocation.getAeshContext().setCurrentWorkingDirectory(file); commandInvocation.setPrompt(new Prompt("[aesh@extensions:" + file.toString() + "]$ ")); }