-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
89 lines (70 loc) · 2.27 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# This directory is accidentally omitted on debian based operating systems
export PATH="$HOME/.local/bin:$PATH"
# Path used by the Nix functional package manager
export PATH="$HOME/.nix-profile/bin:$PATH"
# -----------------------------------------------------------------------------
# (Oh-My-)Zsh
# -----------------------------------------------------------------------------
unsetopt beep
export ZSH=$HOME/.oh-my-zsh
plugins=(
asdf
colorize
colored-man-pages
composer
docker
docker-compose
F-Sy-H
git
history
laravel
rails
keychain
gpg-agent
zsh-autocomplete
zsh-autosuggestions
)
ZSH_THEME=juanghurtado
COMPLETION_WAITING_DOTS="true"
zstyle :omz:plugins:keychain agents gpg,ssh
zstyle :omz:plugins:keychain identities blade_github_ed25519 blade_gitlab_ed25519 blade_strato_ed25519
# -----------------------------------------------------------------------------
# Post Setup
# -----------------------------------------------------------------------------
source $ZSH/oh-my-zsh.sh
# Setup zoxide
eval "$(zoxide init --cmd cd zsh)"
# -----------------------------------------------------------------------------
# Aliases
# -----------------------------------------------------------------------------
alias vrc="vim $HOME/dotfiles/.config/nvim/init.lua"
alias zrc="vim $HOME/dotfiles/.zshrc"
# System defaults
alias ls="ls -lAhF --color=auto"
# Git
alias gl="git sl"
alias gfix="git fix"
# function to automatically prune branches both locally and remote
function gpb() {
git checkout "$(git_main_branch)"
git fetch
git remote prune origin
git branch --merged | grep -vE "$(git_main_branch)|$(git_develop_branch)" | xargs -r git branch -d
}
# laravel
alias a="artisan"
alias tinker="artisan tinker"
# kamal
alias kamal='docker run -it --rm -v "${PWD}:/workdir" -v "${SSH_AUTH_SOCK}:/ssh-agent" -v /var/run/docker.sock:/var/run/docker.sock -e "SSH_AUTH_SOCK=/ssh-agent" ghcr.io/basecamp/kamal:latest'
# -----------------------------------------------------------------------------
# Keybinds
# -----------------------------------------------------------------------------
bindkey -e
# Control + backspace
bindkey '^H' backward-kill-word
# Control + arrows
bindkey ";5C" forward-word
bindkey ";5D" backward-word
neofetch