Erwin Müller

Tag: bash

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}”)…