mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] Added loading of files next to zshrc.
This commit is contained in:
parent
97427c27ee
commit
a1409e4441
2 changed files with 12 additions and 1 deletions
3
zsh/functions.zsh
Normal file
3
zsh/functions.zsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
#
|
||||
silence() { $1 &>/dev/null }
|
10
zsh/zshrc
10
zsh/zshrc
|
@ -1,3 +1,11 @@
|
|||
SCRIPT_DIR="$( dirname "$( readlink -f "$0" )" )"
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
K_ZSH_DOTFILES="${0:h}"
|
||||
|
||||
# Get this file's current directory and source Dima's zshrc from there
|
||||
SCRIPT_DIR="$( dirname "$( readlink -f "$0" )" )"
|
||||
source $SCRIPT_DIR/../dmitmel-dotfiles/zsh/zshrc
|
||||
|
||||
for script in functions; do
|
||||
source "$K_ZSH_DOTFILES/$script.zsh"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue