-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
61 lines (46 loc) · 1.02 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
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt share_history
setopt append_history
setopt HIST_SAVE_NO_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_FIND_NO_DUPS
mmg() {
docker run --rm -v $(pwd):/data docker.io/minlag/mermaid-cli:latest -i /data/$1 -o /data/$1.svg && firefox $1.svg
}
c() {
cd $1
source .env_local
ls -lha --color
}
f() {
find . -iname "*$1*"
}
dbpi() {
image=("registry.localhost:7005/$1:dev")
echo "building image: $image"
docker build . -t "$image" && docker push "$image"
echo "Done!"
}
bbpi() {
image=("registry.localhost:7005/$1:dev")
echo "building image with Buildah: $image"
buildah bud --layers -t "$image" && buildah push "$image"
echo "Done!"
}
rust_try() {
rm -rf /tmp/$1
mkdir /tmp/$1
cd /tmp/$1
cargo init
echo "$2 = '*'" >> Cargo.toml
code .
}
source ~/.env.sh
source ~/.alias.sh
source ~/.os_local.sh
source ~/.local.sh
eval "$(starship init zsh)"
# add Pulumi to the PATH
export PATH=$PATH:$HOME/.pulumi/bin