summaryrefslogtreecommitdiff
path: root/mac/.local/bin/localshortcuts
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 13:49:32 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 13:49:32 +0900
commita311b30a10e90e3f878937bcf722daa8e75b68c1 (patch)
tree01bc6e3d6f14bb41aed0539976079163d0b56bcc /mac/.local/bin/localshortcuts
parent67dabe8e3427b5f0ab251fe7c35a3192bf3e5c0a (diff)
updates
Diffstat (limited to 'mac/.local/bin/localshortcuts')
-rwxr-xr-xmac/.local/bin/localshortcuts27
1 files changed, 0 insertions, 27 deletions
diff --git a/mac/.local/bin/localshortcuts b/mac/.local/bin/localshortcuts
index b9d5ba9..98977c7 100755
--- a/mac/.local/bin/localshortcuts
+++ b/mac/.local/bin/localshortcuts
@@ -57,30 +57,3 @@ eval "echo \"$(cat "$bmfiles")\"" |
printf(\"nmap <localleader><localleader>%s :e %s<cr>\n\",\$1,\$2) >> \"$vim_shortcuts\" ;
printf(\"vim.keymap.set('c', ';%s', '%s<cr>', { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, gensub(\"^/home/$USER/\",\"~/\",\"g\",\$2)) >> \"$nvim_shortcuts\" ;
printf(\"vim.keymap.set('n', '<localleader><localleader>%s', '<cmd>e %s<cr>', { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, gensub(\"^/home/$USER/\",\"~/\",\"g\",\$2)) >> \"$nvim_shortcuts\"}"
-
-# # root
-# root_shell_shortcuts="/root/.config/shell/rootshortcutrc"
-# root_zsh_named_dirs="/root/.config/shell/rootzshnameddirrc"
-# root_lf_shortcuts="/root/.config/lf/rootshortcutrc"
-# root_vim_shortcuts="/root/.config/vim/rootshortcuts.vim"
-#
-# sudo rm -f "$root_zsh_named_dirs" "$root_lf_shortcuts" "$root_vim_shortcuts" 2>/dev/null
-# printf "# vim: filetype=sh\\nalias " | sudo tee "$root_shell_shortcuts" 2>/dev/null
-# sudo mkdir -p /root/.config/shell/ /root/.config/lf/ /root/.config/vim/
-# sudo touch "$root_shell_shortcuts" "$root_zsh_named_dirs" "$root_lf_shortcuts" "$root_vim_shortcuts"
-#
-# eval "echo \"$(cat "$bmdirs")\"" |
-# sudo awk "!/^\s*#/ && !/^\s*\$/ && /cache|config($|\/bash|\/lf|\/shell|\/vim)|local\/(bin|share|state)$/ {gsub(\"\\\s*#.*$\",\"\"); gsub(\"home/$USER\", \"root\");
-# printf(\",%s=\42cd %s && ls -A\42 \\\\\n\",\$1,\$2) >> \"$root_shell_shortcuts\" ;
-# printf(\"hash -d ,%s=%s \n\",\$1,\$2) >> \"$root_zsh_named_dirs\" ;
-# printf(\"map ,%s cd \42%s\42 \n\",\$1,\$2) >> \"$root_lf_shortcuts\" ;
-# printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$root_vim_shortcuts\" ;
-# printf(\"nmap <localleader><localleader>%s :Explore %s<cr>\n\",\$1,\$2) >> \"$root_vim_shortcuts\"}"
-#
-# eval "echo \"$(cat "$bmfiles")\"" |
-# sudo awk "!/^\s*#/ && !/^\s*\$/ && /config\/(bash|lf|vim)\/.*rc |inputrc|\$EDITOR / {gsub(\"\\\s*#.*$\",\"\"); gsub(\"home/$USER\", \"root\");
-# printf(\",%s=\42\$EDITOR %s\42 \\\\\n\",\$1,\$2) >> \"$root_shell_shortcuts\" ;
-# printf(\"hash -d ,%s=%s \n\",\$1,\$2) >> \"$root_zsh_named_dirs\" ;
-# printf(\"map ,%s \$\$EDITOR \42%s\42 \n\",\$1,\$2) >> \"$root_lf_shortcuts\" ;
-# printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$root_vim_shortcuts\" ;
-# printf(\"nmap <localleader><localleader>%s :e %s<cr>\n\",\$1,\$2) >> \"$root_vim_shortcuts\"}"