further cleanup of zsh files
* renamed ZSH to DOTFILES * create new ZSH variable that points to $DOTFILES/zsh
This commit is contained in:
@@ -30,5 +30,5 @@ bindkey '^[[3~' delete-char
|
|||||||
bindkey '^[^N' newtab
|
bindkey '^[^N' newtab
|
||||||
bindkey '^?' backward-delete-char
|
bindkey '^?' backward-delete-char
|
||||||
|
|
||||||
fpath=($ZSH/zsh/functions $fpath)
|
fpath=($ZSH/functions $fpath)
|
||||||
autoload -U $ZSH/zsh/functions/*(:t)
|
autoload -U $ZSH/functions/*(:t)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# tmux aliases
|
||||||
alias ta='tmux attach'
|
alias ta='tmux attach'
|
||||||
alias tls='tmux ls'
|
alias tls='tmux ls'
|
||||||
alias tat='tmux attach -t'
|
alias tat='tmux attach -t'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
export ZSH=$HOME/.dotfiles
|
export DOTFILES=$HOME/.dotfiles
|
||||||
|
export ZSH=$DOTFILES/zsh
|
||||||
|
|
||||||
# define the code directory
|
# define the code directory
|
||||||
if [[ -d ~/code ]]; then
|
if [[ -d ~/code ]]; then
|
||||||
@@ -6,7 +7,7 @@ if [[ -d ~/code ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# load all zsh config files
|
# load all zsh config files
|
||||||
for config ($ZSH/zsh/**/*.zsh) source $config
|
for config ($ZSH/**/*.zsh) source $config
|
||||||
|
|
||||||
if [[ -a ~/.localrc ]]; then
|
if [[ -a ~/.localrc ]]; then
|
||||||
source ~/.localrc
|
source ~/.localrc
|
||||||
@@ -17,7 +18,7 @@ fi
|
|||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
for config ($ZSH/zsh/**/*completion.sh) source $config
|
for config ($ZSH/**/*completion.sh) source $config
|
||||||
|
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
|
|
||||||
@@ -29,7 +30,7 @@ if [[ -d /usr/local/sbin ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# adding path directory for custom scripts
|
# adding path directory for custom scripts
|
||||||
export PATH=$ZSH/bin:$PATH
|
export PATH=$DOTFILES/bin:$PATH
|
||||||
|
|
||||||
# check for custom bin directory and add to path
|
# check for custom bin directory and add to path
|
||||||
if [[ -d ~/bin ]]; then
|
if [[ -d ~/bin ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user