- Author: Tab Atkins-Bittner
- Created: 2025-06-30
In general, we put "semantics" into HTML, and "presentation" into CSS.
(generated by chatgpt 4o and reviewed/edited by claude 3.5 sonnet, YMMV)
| Feature | Bash | Elvish | NuShell | Murex | Es Shell | Fish | Xonsh | PowerShell | Oil | Ion | |----------------------------------|-----------------------------------------------|-----------------------------------------------|----------------------------------------------|----------------------------------------------|----------------------------------------------|----------------------------------------------|----------------------------------------------|----------------------------------------------|-------------------------
| format = """ | |
| [\uE0B6](fg:#1C4961)[$directory](bg:#1C4961)[\uE0B0](fg:#1C4961 bg:#2F79A1)$git_branch[\uE0B0](fg:#2F79A1 bg:#3A95C7)$git_status[\uE0B0](#3A95C7 bg:#40A9E0)$time[\uE0B0](#40A9E0 bg:none) $all$character """ | |
| add_newline = true | |
| [directory] | |
| style = "bg:#1C4961 fg:white" | |
| [git_branch] | |
| format = "[ $symbol$branch ]($style)" |
| // Copyright 2021 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| let videos = [ | |
| { | |
| url: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4', | |
| type: 'video/mp4', | |
| }, { | |
| url: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm', | |
| type: 'video/webm', |
| " Open Netrw on the directory of the current file | |
| nnoremap <leader>dd :Lexplore %:p:h<CR> | |
| " Toggle the Netrw window | |
| nnoremap <Leader>da :Lexplore<CR> | |
| if &columns < 90 | |
| " If the screen is small, occupy half | |
| let g:netrw_winsize = 50 | |
| else |
Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.
Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.
(To be improved)
http command) — pip install httpiegit-branch-protection.sh as git-branch-protection somewhere in your path (something like ~/bin or ~/.local/bin if you already use it)~/.config/github_token.| use std::fmt; | |
| #[derive(Clone, Debug)] | |
| pub struct DateTime { | |
| /// Seconds after the minute - [0, 59] | |
| pub sec: i32, | |
| /// Minutes after the hour - [0, 59] | |
| pub min: i32, | |
| /// Hours after midnight - [0, 23] | |
| pub hour: i32, |
I personally prefer [Semver][]. I think it's reasonable, simple, and makes sense. But as a good Haskell citizen, I'd like to be [PVP][]-compliant as well. Here is a bit of a graphic showing how the two systems are almost the same:
PVP: A . B . C . ...
Semver: Major . Minor . Patch
^ ^ ^
| | |
| | ` increment for other changes
| |
| ` increment on non-breaking change