Erwin Müller

Category: Tools

Mis­cel­la­neous Bash Alias­es & Configuration

Use an alias to open Emacs in­side the con­sole. We will use the Emacs-Client to con­nect to a Emacs serv­er for faster start­up. Ref­er­ences: https://​www​.gnu​.org/​s​o​f​t​w​a​r​e​/​e​m​a​c​s​/​m​a​n​u​a​l​/​h​t​m​l​_​n​o​d​e​/​e​m​a​c​s​/​I​n​v​o​k​i​n​g​— e​m​a​c​s​c​l​i​e​n​t​.​h​t​m​l​#​I​n​v​o​k​i​n​g​— e​m​a​c​s​c​l​i​ent [shell] alias em=’emacsclient ‑nw’ [/shell] Re­move not need­ed Dock­er con­tain­ers. For ex­am­ple: docker_rm_search Ex­it­ed [shell] func­tion docker_rm_search() { p=“$1” dock­er rm ‑f $(dock­er ps ‑a | grep “$p” | awk “{print \$1}”)…

Git Alias­es and Shortcuts

This is a list of com­mon git alias­es and short­cuts. In my opin­ion, cryp­tic alias­es like “gp” for git-push or “gc” for git-check­­out are very hard to re­mem­ber. There­fore, I will write longer alias­es that are more eas­i­ly to re­mem­ber. Since bash or zsh have au­­to-com­­ple­­tion, you can just write “git­co” and then press and let the…