bash
Someone help me out, is this too many? XD
$ alias |wc -l115$ typeset -F |wc -l191$ typeset -f |wc 2934 8863 80790
This is a small personal collection of


I’d love to hear if it ends up being useful for you! If you run into any issues or have suggestions, please report them directly on Disroot Forgejo or just drop a comment here.
#apt #nala #shell #script #Debian #GNUlinux #FreeAsInFreedom #Disroot #SoftwareLivre
Je Imakso, mirinde utilas shell-command-on-region (M-| ), per kiu oni metas tekston kiel enigo al programo.
Mi ĵus malkovris hodiaŭ la egale utilan sh-execute-region, kiu rulas liniojn kiel ŝelprogramo! Mi agordis ĝin hodiaŭ al C-c |.
Tiuanime, hodiaŭ mi skribis simplan funkcion, execute-buffer. Se vi redaktas skripton, per ĝi povas simple ruli la nunan dosieron kaj vidi la eligon. Tre utilas por ŝelo kaj bc-umado, ktp, kiel mi ofte faras.
(global-set-key (kbd "C-c \\") 'execute-buffer)(defun execute-buffer () "Execute the current buffer’s file, sending output to a buffer." (interactive) (shell-command (format "\"%s\"" (buffer-file-name))))