-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
47 lines (37 loc) · 1.09 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
source ~/.zsh_profile
export EDITOR="nvim"
export PATH="$PATH:$HOME/.cargo/bin"
# export PATH=$PATH:$(go env GOPATH)/bin
function vim() {
if [ -z "$@" ]; then
nvim .
else
nvim $@
fi
}
function dopush() {
git add .
git commit -m "$@"
git push
}
function new_branch() {
gco -b $@
git push --set-upstream origin $@
}
function update() {
dir=$(pwd)
cd ~/.config/home-manager
echo "Updating flake..."
nix flake update
echo "Updating home-manager..."
home-manager switch
cd $dir
}
# Wasmer
export WASMER_DIR="/home/roastbeefer/.wasmer"
[ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"
eval $(thefuck --alias)
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/roastbeefer/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/home/roastbeefer/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/roastbeefer/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/roastbeefer/Downloads/google-cloud-sdk/completion.zsh.inc'; fi