-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
71 lines (55 loc) · 2.07 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Path to your oh-my-zsh installation.
export ZSH=/Users/kanyilmaz/.oh-my-zsh
# Theme
ZSH_THEME="robbyrussell"
# Comment this out to disable weekly auto-update checks. Oh-my-zsh updates itself.
DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
# User configuration
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
source $ZSH/oh-my-zsh.sh
# Custom
git config --global user.name "Kan Yilmaz"
git config --global user.email "kan.yilmaz.me@gmail.com"
# Alias's
alias ls='ls -GFh'
alias rm='rm'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir="mkdir -pv"
alias fhere="find . -name "
alias sl="ls"
alias cd..="cd .."
alias ..="cd .."
alias du='du -kh' # Makes a more readable output.
alias df='df -kTh'
# alias cdgo='cd $GOPATH'
# alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
# Pretty-print of some PATH variables:
alias path='echo -e ${PATH//:/\\n}'
# Creates an archive (*.tar.gz) from given directory.
function maketar() { tar cvzf "${1%%/}.tar.gz" "${1%%/}/"; }
# Create a ZIP archive of a file or folder.
function makezip() { zip -r "${1%%/}.zip" "$1" ; }
# rbenv path
# eval "$(rbenv init -)"
# export PATH="$HOME/.rbenv/shims:$PATH"
# postgres env path
# export PATH="/Library/PostgreSQL/9.4/bin::$PATH"
# golang env path
# export GOPATH="$HOME/Documents/Programming/go/"
# export PATH="$HOME/Documents/Programming/go/bin:$GOPATH:$PATH"
# To start docker in a given shell, run start_docker.
# start_docker() {
# . "/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh"
# }
# Plugins
plugins=( zsh-autosuggestions, zsh-syntax-highlighting)