- Open config file:
nano ~/.zshrc - Add history to plugins:
plugins=(history) - Reload zsh:
source ~/.zshrc
- Move to beginning of line: Ctrl + A
- Move to end of line: Ctrl + E
| while ! git rebase --continue; do | |
| git diff --name-only --diff-filter=U | while read file; do | |
| # Apply 'ours' (current changes from HEAD) first | |
| git checkout --ours "$file" | |
| # Then apply 'theirs' (incoming changes) | |
| git checkout --theirs "$file" | |
| .gist-meta { | |
| display: none; | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| .gist { | |
| filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2); | |
| } | |
| } |
| function gxo() { | |
| local branches branch | |
| branches=$(git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)') || return | |
| # Add a separator and then list all branches | |
| branches="$branches"$'\n'"$(git branch --all | grep -v '\->' | sed 's/^[* ]*//')" || return | |
| # Use fzf to select a branch + added useless but cool looking graph | |
| branch=$(echo "$branches" | fzf --height 40% --border --preview 'git log --oneline --graph --decorate --color=always {}') || return |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Test Current File", | |
| "type": "debugpy", | |
| "request": "launch", | |
| "module": "pytest", | |
| "args": [ | |
| "${file}", |
| { | |
| //_____DEBUGGING | |
| "debug.console.fontFamily": "'jetbrains mono', monospace", | |
| "debug.console.fontSize": 14, | |
| //_____TERMINAL | |
| "terminal.explorerKind": "both", | |
| "terminal.integrated.enableMultiLinePasteWarning": "auto", | |
| "terminal.integrated.fontFamily": "'jetbrains mono', monospace", |
| class Foo: | |
| a = 1 | |
| class Bar(Foo): | |
| b = 2 | |
| class Baz(Foo): | |
| c = 3 |