├── .gitignore ├── docs ├── CNAME ├── favicon.ico ├── index.html ├── css │ └── app.982eeecb.css └── js │ ├── app.34c30e27.js │ ├── app.34c30e27.js.map │ └── chunk-vendors.4b047053.js ├── babel.config.js ├── public ├── favicon.ico └── index.html ├── src ├── assets │ └── logo.png ├── prompts │ ├── emoji.js │ ├── directory.js │ └── simple.js ├── main.js ├── App.vue └── components │ └── Lines.vue ├── vue.config.js ├── .vscode └── settings.json ├── renovate.json ├── README.md ├── LICENSE └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | prompt.usman.xyz -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@vue/app"] 3 | }; 4 | -------------------------------------------------------------------------------- /docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usmanity/prompt/master/docs/favicon.ico -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usmanity/prompt/master/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/usmanity/prompt/master/src/assets/logo.png -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | publicPath: "/", 3 | outputDir: "docs" 4 | }; 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.tabSize": 2, 3 | "prettier.eslintIntegration": true 4 | } -------------------------------------------------------------------------------- /src/prompts/emoji.js: -------------------------------------------------------------------------------- 1 | var emoji = { 2 | name: "Use an emoji", 3 | preview: "😁 → ", 4 | config: "😁 → " 5 | }; 6 | 7 | module.exports = emoji; 8 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import App from "./App.vue"; 3 | 4 | Vue.config.productionTip = false; 5 | 6 | new Vue({ 7 | render: h => h(App) 8 | }).$mount("#app"); 9 | -------------------------------------------------------------------------------- /src/prompts/directory.js: -------------------------------------------------------------------------------- 1 | var directory = { 2 | name: "Show current directory", 3 | preview: "~/dir → ", 4 | config: "\\w → ", 5 | }; 6 | 7 | module.exports = directory; 8 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "automerge": true, 6 | "major": { 7 | "automerge": false 8 | }, 9 | "requiredStatusChecks": null 10 | } 11 | -------------------------------------------------------------------------------- /src/prompts/simple.js: -------------------------------------------------------------------------------- 1 | var simple = { 2 | name: "A basic prompt", 3 | preview: "> ", 4 | config: "> ", 5 | notes: "Use any character except \\ by itself in this case" 6 | }; 7 | 8 | module.exports = simple; 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # prompt 2 | 3 | A quick way to get a bash/command line prompt. 4 | 5 | ## help out 6 | 7 | Try the prompts, file an issue if you run into anything. 8 | 9 | Submit your own. (I'll write up how to soon...) 10 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |.bashrc file, open a new session in your terminal
6 | {{ prompt.preview }}
13 | {{ generatePrompt(prompt) }}
17 | {{ prompt.preview }}\n {{ generatePrompt(prompt) }}\n .bashrc file, open a new session in your terminal\n