Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
10 DIM FourDigitPassword INTEGER | |
20 FOR i = 0 TO 9 | |
30 FOR j = 0 TO 9 | |
40 FOR k = 0 TO 9 | |
50 FOR l = 0 TO 9 | |
60 FourDigitPassword = getFourDigits (i,j,k,l) | |
70 IF checkPasswordMatch(FourDigitPassword) = TRUE THEN | |
80 GOTO 140 | |
90 END | |
100 NEXT l |
gitc() { | |
git fetch --prune | |
for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; | |
do | |
git branch -D $branch | |
done; | |
git branch --merged master | grep -v '^*' | grep -v '^ master$' | xargs git branch -d | |
} |
Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
1. Backup com.apple.finder.plist | |
cp ~/Library/Preferences/com.apple.finder.plist ~/Desktop | |
2. Set top-level defaults using the defaults command | |
Default to list view: | |
defaults write com.apple.finder FXPreferredViewStyle Nlsv | |
Default Arrange By flags that don't seem to be effective: | |
defaults write com.apple.finder FXArrangeGroupViewBy kind | |
defaults write com.apple.finder FXPreferredGroupBy kind |
import * as React from "react"; | |
import { useMousePosition } from "~/hooks/useMousePosition"; | |
/** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
const [mouseX, mouseY] = useMousePosition(); | |
const positions = { x, y, h, w, mouseX, mouseY }; | |
return ( | |
<div |