init
This commit is contained in:
commit
dbb896dbf5
42
.zprofile
Normal file
42
.zprofile
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# General Aliases
|
||||||
|
alias ns='npm start'
|
||||||
|
alias nr='npm run'
|
||||||
|
alias ll='ls -al'
|
||||||
|
alias cs='clear'
|
||||||
|
alias pg_start='brew services start postgresql'
|
||||||
|
alias pg_stop='brew services stop postgresql'
|
||||||
|
alias dev='cd ~/dev/'
|
||||||
|
alias sand='cd ~/dev/Sandbox'
|
||||||
|
|
||||||
|
|
||||||
|
# Git Aliases
|
||||||
|
alias ga='git add'
|
||||||
|
alias gaa='git add .'
|
||||||
|
alias gc='git commit'
|
||||||
|
alias gcm='git commit -m'
|
||||||
|
alias gd='git diff'
|
||||||
|
alias gi='git init'
|
||||||
|
alias gl='git log'
|
||||||
|
alias gp='git pull'
|
||||||
|
alias gpsh='git push'
|
||||||
|
alias gss='git status -s'
|
||||||
|
alias gs='echo ""; echo "***"; echo -e " DONT FORGET TO PULL BEFORE COMMITTING"; echo "***"; echo ""; git status'
|
||||||
|
|
||||||
|
|
||||||
|
# Docker Aliases
|
||||||
|
alias doc='docker'
|
||||||
|
alias dps='docker ps'
|
||||||
|
alias dpsa='docker ps -a'
|
||||||
|
alias dlsi='docker images'
|
||||||
|
alias drmi='docker rmi'
|
||||||
|
alias drmc='docker container rm'
|
||||||
|
alias docshell="docker run --rm -i -t --entrypoint=/bin/bash"
|
||||||
|
alias docshellsh="docker run --rm -i -t --entrypoint=/bin/sh"
|
||||||
|
function docshellhere() {
|
||||||
|
dirname=${PWD##*/}
|
||||||
|
docker run --rm -it --entrypoint=/bin/bash -v `pwd`:/${dirname} -w /${dirname} "$@"
|
||||||
|
}
|
||||||
|
function docshellshhere() {
|
||||||
|
dirname=${PWD##*/}
|
||||||
|
docker run --rm -it --entrypoint=/bin/sh -v `pwd`:/${dirname} -w /${dirname} "$@"
|
||||||
|
}
|
64
.zshrc
Normal file
64
.zshrc
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
#export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/Users/lucataco/.oh-my-zsh"
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
ZSH_THEME="robbyrussell"
|
||||||
|
|
||||||
|
|
||||||
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
|
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to change the command execution time
|
||||||
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# plugins
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
# export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
# Example aliases
|
||||||
|
alias zshconfig="mate ~/.zshrc"
|
||||||
|
alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
|
|
||||||
|
# Timestamp Left
|
||||||
|
PROMPT='%{$fg[green]%}%m '$PROMPT
|
||||||
|
|
||||||
|
#Time Right
|
||||||
|
RPROMPT="%{$fg[yellow]%}[%D{%L:%M:%S}]"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user