Skip to content

Commit

Permalink
feat(git): add git alias for assume untracks
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jul 16, 2024
1 parent 5533533 commit d94abe3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configs/git/gitalias
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
identity = "! ([ -z $1 ] && echo \"usage: git identity <identity>\n\navailable identities:\" && (git config --name-only --get-regexp \"user\\.[^\\.]+\\.name\" | cut -d. -f 2 | sed \"s/^/ - /\")) || (git config user.name \"$(git config user.$1.name)\" && git config user.email \"$(git config user.$1.email)\"); :"
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
local-ignore = "!lig(){ ([ -z $1 ] && echo \"usage: git local-ignore <command>\" && echo && echo \"commands:\" && echo \" add <pattern>\" && echo \" list\" && echo \" edit\") || (case \"$1\" in add) [ -z "$2" ] && echo \"error: add requires a pattern\" || echo \"$2\" >> .git/info/exclude;; list) cat .git/info/exclude;; edit) $EDITOR .git/info/exclude;; *) echo \"error: invalid command $1\";; esac); }; lig"
hide = "update-index --assume-unchanged"
unhide = "update-index --no-assume-unchanged"
unhide-all = "! git hidden | xargs git unhide --"
hidden = "! git ls-files -v | grep '^[a-z]' | cut -c3-"
no-untrack = "config --local status.showUntrackedFiles no"
show-untrack = "config --local --unset status.showUntrackedFiles"
st = "status -sb -unormal"
3 changes: 3 additions & 0 deletions configs/nvim/lua/language/json.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local lsp = require('lib.lsp')

lsp.setup('jsonls')

0 comments on commit d94abe3

Please sign in to comment.