]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
add function to create a puppet module and set up git for it master
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Fri, 20 Sep 2024 12:00:20 +0000 (14:00 +0200)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Fri, 20 Sep 2024 12:00:20 +0000 (14:00 +0200)
.zsh_functions/,chromprof [new file with mode: 0644]
.zsh_functions/,pp_mod_git [new file with mode: 0644]
.zsh_functions/mr_register_puppet_module [new file with mode: 0644]
.zshrc

diff --git a/.zsh_functions/,chromprof b/.zsh_functions/,chromprof
new file mode 100644 (file)
index 0000000..cc8a81d
--- /dev/null
@@ -0,0 +1,3 @@
+profile_name=$1
+mkdir -p ${HOME}/.config/chromium_profile_${profile_name}
+chromium --user-data-dir=${HOME}/.config/chromium_profile_${profile_name}
diff --git a/.zsh_functions/,pp_mod_git b/.zsh_functions/,pp_mod_git
new file mode 100644 (file)
index 0000000..dfb815b
--- /dev/null
@@ -0,0 +1 @@
+g remote add origin ssh://git.netwichtig.de/user/henk/code/puppet/modules/${PWD##*/}.git
diff --git a/.zsh_functions/mr_register_puppet_module b/.zsh_functions/mr_register_puppet_module
new file mode 100644 (file)
index 0000000..5019756
--- /dev/null
@@ -0,0 +1,4 @@
+MODULE=$1
+cd ${MODULE}
+GITURL=$(git remote get-url origin)
+echo "[\$HOME/Data/personal/henk/workinprograss/configs/puppet_modules/${MODULE}]\ncheckout = git clone '${GITURL%.git}.git' '$MODULE'" > ~/.config/mr/available.d/puppet_${MODULE}.repo
diff --git a/.zshrc b/.zshrc
index 9d9ed49591ffadadabdd852e7fe508b3a048259e..678b466ce676e51926d7c3c687b210166fc4d06e 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -222,6 +222,7 @@ eval "$(zoxide init zsh)"
 FZF_TMUX=1
 FZF_CTRL_T_COMMAND='command fdfind --hidden'
 FZF_ALT_C_COMMAND='command fdfind --hidden --type d'
+FZF_DEFAULT_COMMAND='command fdfind --hidden'
 source /usr/share/doc/fzf/examples/key-bindings.zsh
 source /usr/share/doc/fzf/examples/completion.zsh