sudo apt-get install zsh
A pretty nice zsh configuration manager. Has some great plugins and useful poweruser features.
- agnoster is a cool theme, requires Powerline fonts installed to actually look good
- https://github.com/powerline/fonts
sudo apt-get install zsh
A pretty nice zsh configuration manager. Has some great plugins and useful poweruser features.
# zsh powerlevel config | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0 | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time root_indicator kubecontext history) |
set nocompatible " be iMproved, required | |
filetype off " required | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use neocomplete. | |
let g:neocomplete#enable_at_startup = 1 | |
" Use smartcase. | |
let g:neocomplete#enable_smart_case = 1 |
<div id="example"> | |
<!-- using our custom component --> | |
<my-component></my-component> | |
</div> | |
<script> | |
// Define a new component | |
Vue.component('my-component', { | |
data: function () { | |
return { |
function MyForm(props){ | |
const handleSubmit = (event) => { | |
if(event){ | |
event.preventDefault() | |
} | |
props.onSubmit() // <== This is all I really want to do!!! | |
} | |
return <form onSubmit={handleSubmit}> | |
<!-- ... ---> | |
</form> |