multiple updates

vim/nvim functions/keys
shell aliases
waybar config
password-store submodule
This commit is contained in:
2024-03-09 11:47:06 +11:00
parent d935c04dad
commit 14159884fa
10 changed files with 164 additions and 13 deletions
+14
View File
@@ -0,0 +1,14 @@
vim.cmd([[
function! GetRepositoryName()
let repo_path = system("git -C " . getcwd() . " rev-parse --show-toplevel")
let repo_name = fnamemodify(trim(repo_path), ':t')
let repo_name_clean = substitute(repo_name, '[\/\-\s]', '_', 'g')
return repo_name_clean
endfunction
function! GetCurrentGitBranch()
let l:branch = system("git -C " . getcwd() . " branch --show-current")
let l:branch_clean = substitute(trim(l:branch), '[\/\-\s]', '_', 'g')
return l:branch_clean
endfunction
]])