Browse Source

Updated prompt and added aliases

master
Joshua Wolfe 5 years ago
parent
commit
5cc5d1786d
2 changed files with 24 additions and 2 deletions
  1. 2
    1
      .zsh/configs/prompt.zsh
  2. 22
    1
      .zshrc

+ 2
- 1
.zsh/configs/prompt.zsh View File

@@ -6,4 +6,5 @@ git_prompt_info() {
fi
}
setopt promptsubst
PS1='${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[blue]%}%c%{$reset_color%}$(git_prompt_info) %# '
PS1='${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) $ '
RPROMPT='`jobs | sed -E "s;\[([0-9])*\] (\+|\-| )? (s|r)[a-z]* *(.*); [\1]\3 \2\4;" | tr "\n" "," | sed "s/.$//"` [`date +%H:%M:%S`]'

+ 22
- 1
.zshrc View File

@@ -40,7 +40,28 @@ _load_settings() {
_load_settings "$HOME/.zsh/configs"

# aliases
[[ -f ~/.aliases ]] && source ~/.aliases
# [[ -f ~/.aliases ]] && source ~/.aliases
alias vim='nvim'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES;killall Finder /System/Library/CoreServices/Finder.app'
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC -I rc'
alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=https://www.google.com&;disown'
alias py3='python3'
# List directory contents
alias lsa='ls -lah'
alias l='ls'
alias ll='ls -lh'
alias la='ls -A'
# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'
alias md='mkdir -p'
alias rd=rmdir
alias d='dirs -v | head -10'
alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'
alias -g ......='../../../../..'

# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local

Loading…
Cancel
Save