Move zsh configs
This commit is contained in:
parent
bde71986a4
commit
78eff56e53
2
rcrc
2
rcrc
|
@ -1,4 +1,4 @@
|
||||||
DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles"
|
DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles"
|
||||||
EXCLUDES="install.sh README.md"
|
EXCLUDES="install.sh README.md"
|
||||||
SYMLINK_DIRS="composer bin functions zsh_profile.d"
|
SYMLINK_DIRS="composer bin functions configs"
|
||||||
TAGS="git npm php tmux vim zsh"
|
TAGS="git npm php tmux vim zsh"
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
alias ga="git add"
|
|
||||||
alias gc="git commit"
|
|
||||||
alias gca="git commit --amend --no-edit --reset-author"
|
|
||||||
alias gcm="git commit -m"
|
|
||||||
alias gl="git log"
|
|
||||||
alias gs="git status"
|
|
||||||
|
|
||||||
alias gh="github"
|
|
||||||
alias nah="git reset --hard && git clean -fd"
|
|
||||||
alias wip="git add . && git commit -m 'wip'"
|
|
||||||
|
|
||||||
alias l="ls -lah"
|
alias l="ls -lah"
|
||||||
|
|
||||||
# Fast open
|
# Fast open
|
||||||
|
@ -20,9 +9,6 @@ alias pstorm="phpstorm"
|
||||||
alias st="subl"
|
alias st="subl"
|
||||||
alias stt="subl ."
|
alias stt="subl ."
|
||||||
|
|
||||||
# Quickly go to the Code directory
|
|
||||||
alias web="cd ~/Code"
|
|
||||||
|
|
||||||
alias y=yarn
|
alias y=yarn
|
||||||
alias ya='yarn add'
|
alias ya='yarn add'
|
||||||
alias yd="yarn dev"
|
alias yd="yarn dev"
|
||||||
|
@ -30,19 +16,10 @@ alias yp="yarn prod"
|
||||||
alias ys="yarn serve"
|
alias ys="yarn serve"
|
||||||
alias yw="yarn watch"
|
alias yw="yarn watch"
|
||||||
|
|
||||||
# Shorter Git commands.
|
|
||||||
alias add='git add'
|
|
||||||
alias amend='git commit --amend'
|
|
||||||
alias clone='git clone'
|
|
||||||
alias commit='git commit'
|
|
||||||
alias pull='git pull'
|
|
||||||
alias push='git push'
|
|
||||||
alias rebase='git rebase'
|
|
||||||
alias reset='git reset'
|
|
||||||
|
|
||||||
alias hosts="sudo vim /etc/hosts"
|
alias hosts="sudo vim /etc/hosts"
|
||||||
alias sshconfig='vim ~/.ssh/config'
|
alias sshconfig='vim ~/.ssh/config'
|
||||||
alias zshconfig='vim ~/.zshrc'
|
alias zshconfig='vim ~/.zshrc'
|
||||||
|
|
||||||
# Pretty print the path
|
# Pretty print the path
|
||||||
alias path='echo $PATH | tr -s ":" "\n"'
|
alias path='echo $PATH | tr -s ":" "\n"'
|
||||||
|
|
||||||
|
@ -51,5 +28,6 @@ alias pstorm='open -a /Applications/PhpStorm.app "`pwd`"'
|
||||||
|
|
||||||
# Sublime Text
|
# Sublime Text
|
||||||
alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"'
|
alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"'
|
||||||
|
|
||||||
# Include custom aliases
|
# Include custom aliases
|
||||||
[[ -f ~/.aliases.local ]] && source ~/.aliases.local
|
[[ -f ~/.aliases.local ]] && source ~/.aliases.local
|
|
@ -98,7 +98,7 @@ for function in $HOME/.zsh/functions/*; do
|
||||||
source $function
|
source $function
|
||||||
done
|
done
|
||||||
|
|
||||||
for zsh_source in $HOME/.zsh_profile.d/*.zsh; do
|
for zsh_source in $HOME/.zsh/configs/*.zsh; do
|
||||||
source $zsh_source
|
source $zsh_source
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue