mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 01:12:42 +01:00
Compare commits
2 commits
b43ef009d6
...
f0bf01386b
| Author | SHA1 | Date | |
|---|---|---|---|
| f0bf01386b | |||
| 50b98443c7 |
3 changed files with 47 additions and 0 deletions
|
|
@ -83,6 +83,18 @@ gitf () {
|
|||
gitf w
|
||||
;;
|
||||
|
||||
# Checkout [and create] a git branch (defaults to "master")
|
||||
"b")
|
||||
local branch="${2:-master}"
|
||||
|
||||
if git show-ref --verify --quiet refs/heads/"$branch"; then
|
||||
git checkout $branch
|
||||
return 0
|
||||
fi
|
||||
|
||||
git checkout -b $branch
|
||||
;;
|
||||
|
||||
# Clear local branches that have no upstream on remote (cleanup)
|
||||
"c")
|
||||
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
[
|
||||
"alefragnani.bookmarks",
|
||||
"demartini.vscode-idiomatic-css-comments-snippets",
|
||||
"hangxingliu.vscode-nginx-conf-hint",
|
||||
"ms-python.debugpy",
|
||||
|
|
|
|||
|
|
@ -27,5 +27,39 @@
|
|||
{
|
||||
"key": "ctrl+shift+h",
|
||||
"command": "-workbench.action.replaceInFiles"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+oem_5",
|
||||
"command": "bookmarks.toggle",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+k",
|
||||
"command": "-bookmarks.toggle",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+1",
|
||||
"command": "bookmarks.jumpToNext",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+l",
|
||||
"command": "-bookmarks.jumpToNext",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+2",
|
||||
"command": "bookmarks.jumpToPrevious",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+j",
|
||||
"command": "-bookmarks.jumpToPrevious",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+3",
|
||||
"command": "bookmarks.clear"
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Reference in a new issue