diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-17 22:58:15 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-17 22:58:15 +0200 |
commit | 35d858363a88f1d985ba36cf0e18de6ab0ccfcd1 (patch) | |
tree | 611e856f77effc512aaa317137039bcb9f49060e /.bashrc_text | |
parent | move Windows-specific stuff to .appdata/ (diff) | |
download | linux-home-35d858363a88f1d985ba36cf0e18de6ab0ccfcd1.tar.gz linux-home-35d858363a88f1d985ba36cf0e18de6ab0ccfcd1.zip |
move .bashrc_* to .bash_utils/
Diffstat (limited to '.bashrc_text')
-rw-r--r-- | .bashrc_text | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/.bashrc_text b/.bashrc_text deleted file mode 100644 index 5a678ee..0000000 --- a/.bashrc_text +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com> -# This file is part of the "Cygwin configuration files" project. -# For details, see https://github.com/egor-tensin/cygwin-home. -# Distributed under the MIT License. - -alias dos2eol='sed --binary --in-place '"'"'s/\(\r\?\)$//'"'" -alias eol2dos='sed --binary --in-place '"'"'s/\r\?$/\r/'"'" - -alias trim='sed --binary --in-place '"'"'s/[[:blank:]]*\(\r\?\)$/\1/'"'" - -alias trimeol='sed --binary --in-place -e :a -e '"'"'/^\n*$/{$d;N;ba}'"'" -alias trimdoseol='sed --binary --in-place -e :a -e '"'"'/^\(\r\n\)*\r$/{$d;N;ba}'"'" - -alias eol='sed --binary --in-place '"'"'$a\'"'" -alias doseol='sed --binary --in-place '"'"'$s/\r\?$/\r/;a\'"'" - -alias trimbom='sed --binary --in-place '"'"'1 s/^\xef\xbb\xbf//'"'" - -lint() { - trim "$@" && trimeol "$@" && eol "$@" -} - -doslint() { - trim "$@" && trimdoseol "$@" && doseol "$@" -} |