diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2014-12-22 00:37:32 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2014-12-22 00:37:32 +0100 |
commit | a4c290620e32ac7737bbd545c35387b4a3a3461d (patch) | |
tree | 6d6d55587baeff59bcdf4841466a34e584746b9b /user/.zshrc |
Added configuration files for zsh
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'user/.zshrc')
-rw-r--r-- | user/.zshrc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/user/.zshrc b/user/.zshrc new file mode 100644 index 0000000..6b9a95c --- /dev/null +++ b/user/.zshrc @@ -0,0 +1,19 @@ +function __source_startup_files() +{ + # source the global configution file + local file="/etc/zshrc" + + if [ -r "$file" ]; then + source "$file" + fi + + # source every file readable in .zsh + for file in $(find ".zsh" -type f -readable); do + source "$file" + done +} + +__source_startup_files +unset __source_startup_files + +ulimit -c unlimited |