dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c82e6c1833a2adb95341ee52cd21b5a42ae84807
parent eba9e3a7a9c8f745f662cd940456504c765a0335
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon, 14 Jan 2019 00:03:40 +0100

Changed rmcolors from function to alias


Former-commit-id: f2cce30372a1076d25cf65a802fb3739d9bfef2d
Diffstat:
Mshell/commonprofile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/commonprofile b/shell/commonprofile @@ -90,6 +90,7 @@ alias g='git' # Make git easie alias r='ranger' # Make Ranger easier to type alias wheredef='type -a' alias lsblk="lsblk -o NAME,LABEL,PARTLABEL,TYPE,FSTYPE,SIZE,MOUNTPOINT,STATE" +alias rmcolors="sed \"s,\x1B\[[0-9;]*[a-zA-Z],,g\"" # Remove ANSI color codes from text # }}} # Aliases (Mac UI) {{{ @@ -125,7 +126,6 @@ todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO"; } # Fi find_in_files() { grep -rnw "$1" -e "$2"; } # Search for text in files hr() { for ((i=0; i<COLUMNS; i++)); do echo -n "#"; done; echo; } # Insert a <hr> in the terminal vimq() { vim -v -q <($(fc -nl -1)); } # Load results of last command (often ag) in vim quickfix -rmcolors() { sed "s,\x1B\[[0-9;]*[a-zA-Z],,g"; } # Remove ANSI color codes from text # Pip3 upgrade packages pip3_upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; }