diff --git a/bashrc b/bashrc index f4161dd5..cab11871 100755 --- a/bashrc +++ b/bashrc @@ -350,6 +350,10 @@ alias move=mv # MSDOS # List git committers of repository alias git-committers="git shortlog -s" +# Line ending converting with flip +alias unixle="flip -ub " +alias msdosle="flip -mb " + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/warnings b/warnings index 2e543b9f..b4d837d5 100644 --- a/warnings +++ b/warnings @@ -6,6 +6,7 @@ command -v \lynx >/dev/null 2>&1 || { echo >&2 "WARNING: lynx isn't installed! Y command -v \gpg-agent >/dev/null 2>&1 || { echo >&2 "WARNING: gnupg-agent isn't installed. You should install it, because it's used by gpg.conf and xsessionrc in shell-things."; } command -v \curl >/dev/null 2>&1 || { echo >&2 "WARNING: curl isn't installed! You should install it, because it's used by some aliases or functions."; } command -v \pandoc >/dev/null 2>&1 || { echo >&2 "WARNING: pandoc isn't installed. It's used by some aliases or functions, so you might want to install it."; } +command -v \flip >/dev/null 2>&1 || { echo >&2 "WARNING: flip isn't installed. You might want to install it, because it's used in line ending conversions."; } ## To disable warnings, add the following (UNCOMMENTED!) to ~/.custom diff --git a/zshrc b/zshrc index e95a7d13..8a4c69e9 100755 --- a/zshrc +++ b/zshrc @@ -302,6 +302,9 @@ alias move=mv # MSDOS # List git committers of repository alias git-committers="git shortlog -s" +alias unixle="flip -ub " +alias msdosle="flip -mb " + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases