bashrc & zshrc & warnings: add unixle and msdosle to convert line endings.

This commit is contained in:
Mika Suomalainen 2012-09-23 10:27:29 +03:00
parent 6b27107ca4
commit 637a58beb0
3 changed files with 8 additions and 0 deletions

4
bashrc
View File

@ -350,6 +350,10 @@ alias move=mv # MSDOS
# List git committers of repository # List git committers of repository
alias git-committers="git shortlog -s" 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 . # Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases # .aliases

View File

@ -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 \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 \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 \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 ## To disable warnings, add the following (UNCOMMENTED!) to ~/.custom

3
zshrc
View File

@ -302,6 +302,9 @@ alias move=mv # MSDOS
# List git committers of repository # List git committers of repository
alias git-committers="git shortlog -s" alias git-committers="git shortlog -s"
alias unixle="flip -ub "
alias msdosle="flip -mb "
# .aliases # .aliases
if [ -f ~/.aliases ]; then if [ -f ~/.aliases ]; then
source ~/.aliases source ~/.aliases