dotfiles

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

commit 84274f1953966a0b8cfdd1766d7c45314e7da125
parent a9820d920a0c850a8b1b90a7ea5ba56a2c23d1b0
Author: Alex Balgavy <EMAIL>
Date:   Sun, 13 Jan 2019 22:38:56 +0100

Function to remove ANSI color codes


Former-commit-id: 8291fdf663e7aa99cee4190fbc7f4a7328c21676
Diffstat:
Mshell/commonprofile | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/shell/commonprofile b/shell/commonprofile @@ -122,6 +122,7 @@ 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; }