-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
90 lines (73 loc) · 2.74 KB
/
dot_bashrc
File metadata and controls
90 lines (73 loc) · 2.74 KB
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
# If not running interactively, don't do anything (leave this at the top of this file)
[[ $- != *i* ]] && return
# All the default Omarchy aliases and functions
# (don't mess with these directly, just overwrite them here!)
source ~/.local/share/omarchy/default/bash/rc
# Source autojump
[[ -s /usr/share/autojump/autojump.bash ]] && source /usr/share/autojump/autojump.bash
# Add your own exports, aliases, and functions here.
# environment variables
export GOPRIVATE=github.com/qdrant
export PATH="$HOME/.local/bin:$PATH"
# Start ssh-agent if is not running already
if [ -z "$SSH_AUTH_SOCK" ]; then
eval "$(ssh-agent -s)" >/dev/null
fi
# Make an alias for invoking commands you use constantly
# alias p='python'
alias gg='lazygit'
alias j='autojump'
alias yz='yazi'
alias dot='chezmoi'
alias zed='zeditor'
alias gcm='git checkout main && git fetch --all && git reset --hard origin/main'
# kubectl helpers
alias ctx='kubectx'
alias k='kubectl'
alias kd='kubectl describe'
alias kdel='kubectl delete'
alias ke='kubectl exec -it'
alias kg='kubectl get'
alias kl='kubectl logs'
alias klf='kubectl logs -f'
alias kns='kubens'
alias kw='watch -n 1'
alias ky='kubectl get -oyaml'
alias kpf='kubectl port-forward'
# Plannotator commands
alias pa='plannotator annotate'
alias review='plannotator review'
alias review-plan='plannotator annotate .opencode/plan.md'
alias review-task='plannotator annotate .opencode/task.md'
alias review-subtask='plannotator annotate .opencode/subtask.md'
alias review-feedback='plannotator annotate .opencode/review.md'
# Set KUBECONFIG based on active Zellij tab
if [[ -n "$ZELLIJ" ]]; then
_tab_name=$(zellij action current-tab-info -j 2>/dev/null | jq -r '.name')
case "$_tab_name" in
Development) export KUBECONFIG="$HOME/.kube/qdrant-dev.yaml" ;;
Staging) export KUBECONFIG="$HOME/.kube/qdrant-staging.yaml" ;;
Production) export KUBECONFIG="$HOME/.kube/qdrant-prod.yaml" ;;
esac
unset _tab_name
fi
# Function to print time table of selected zone
timetable() {
# Print header
printf "%-8s %-10s %-10s\n" "UTC" "Berlin" "Dhaka"
printf "%-8s %-10s %-10s\n" "-------" "---------" "---------"
# Loop through each UTC hour (00:00 to 23:00)
for h in {0..23}; do
# UTC time in 24h format
utc_time=$(printf "%02d:00" "$h")
# Berlin time (Europe/Berlin automatically handles CET/CEST DST)
berlin_time=$(TZ=Europe/Berlin date --date="UTC ${utc_time}" +"%H:%M")
# Dhaka time (Asia/Dhaka = UTC+6, no DST)
dhaka_time=$(TZ=Asia/Dhaka date --date="UTC ${utc_time}" +"%H:%M")
# Print the row
printf "%-8s %-10s %-10s\n" "$utc_time" "$berlin_time" "$dhaka_time"
done
}
# Added by LM Studio CLI (lms)
export PATH="$PATH:/home/emruz/.lmstudio/bin"
# End of LM Studio CLI section