From 0c3d6c8d03bc42c266681f11c67fe5c67d784d80 Mon Sep 17 00:00:00 2001 From: Stanislav N Date: Sun, 15 Jan 2017 11:57:15 +0500 Subject: [PATCH] Useful aliases added. Fixes #7. --- zsh/aliases/00-default.conf | 9 +++++++++ zsh/aliases/20-freebsd.conf | 6 ++++++ zsh/aliases/30-macos.conf | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 zsh/aliases/00-default.conf create mode 100644 zsh/aliases/20-freebsd.conf create mode 100644 zsh/aliases/30-macos.conf diff --git a/zsh/aliases/00-default.conf b/zsh/aliases/00-default.conf new file mode 100644 index 0000000..52ba135 --- /dev/null +++ b/zsh/aliases/00-default.conf @@ -0,0 +1,9 @@ +# Default aliases. They can be overriden by other files with higher +# index. + +# Files navigation. +alias ls="ls --color" +alias sl="ls --color" + +# Git. +alias got="git" \ No newline at end of file diff --git a/zsh/aliases/20-freebsd.conf b/zsh/aliases/20-freebsd.conf new file mode 100644 index 0000000..b06fb68 --- /dev/null +++ b/zsh/aliases/20-freebsd.conf @@ -0,0 +1,6 @@ +# Some good aliases for FreeBSD. + +if [ "${OS/FreeBSD}" != "${OS}" ]; then + # Files navigation. + alias ls="ls -G" +fi \ No newline at end of file diff --git a/zsh/aliases/30-macos.conf b/zsh/aliases/30-macos.conf new file mode 100644 index 0000000..1e0183f --- /dev/null +++ b/zsh/aliases/30-macos.conf @@ -0,0 +1,6 @@ +# Some good aliases for macOS. + +if [ "${OS/DarwinD}" != "${OS}" ]; then + # Files navigation. + alias ls="ls -G" +fi \ No newline at end of file