Last active
March 19, 2025 01:19
-
-
Save luckylittle/44a93f57ffb8b8dde10c90c164ed9635 to your computer and use it in GitHub Desktop.
Backup of ~/.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General Aliases | |
alias beep='speaker-test -l 1 -t wav -w Beep.wav' | |
alias c="code ." | |
alias cdd='cd ~/Downloads' | |
alias chksfv='cksfv -C /home/lmaly/Downloads/ -qr' | |
#alias d="docker" | |
alias h="helm" | |
alias sudo='sudo ' | |
alias v='vault' | |
alias vi="/usr/bin/vim" | |
#alias predb="/home/lmaly/Projects/predb-ovh-cli/predb.sh" | |
#alias whatsnew="/home/lmaly/Projects/predb-ovh-cli/whatsnew.sh" | |
alias audible-image-urls="/home/lmaly/Projects/audible-cli/audible-image-urls.sh" | |
alias audible-last-3-manning="/home/lmaly/Projects/audible-cli/audible-last-3-manning.sh" | |
alias tm="tmux -f ~/.tmux/default.conf attach" | |
alias forecast="curl wttr.in/Sydney" | |
alias timezones="~/Documents/timezones.sh" | |
alias f="~/Documents/ftp.zsh" | |
alias ua="find /home/lmaly/Downloads/ -name '*.rar' -type f -execdir unrar e -o- {} \;" | |
# Rescene aliases | |
alias srr='python ~/.local/bin/srr.py' | |
alias srs='python ~/.local/bin/srs.py' | |
alias srrdb_='/usr/local/bin/srrdb -d "${PWD##*/}"' | |
alias srr_='/usr/bin/python ~/.local/bin/srr.py *.srr' | |
alias srs_="mkdir 'Sample/'; /usr/bin/python ~/.local/bin/srs.py *.srs *.mkv" | |
alias sfv_="cksfv -C . -rv" | |
# KubeCtl aliases | |
alias k="kubectl" | |
alias ka="kubectl apply -f" | |
alias kap="kubectl get pods --all-namespaces -o wide" | |
alias kc="kubectl create -f" | |
alias kcg='kubectl config get-context' | |
alias kcon='kubectl config use-context' | |
alias kctx='kubectl config current-context' | |
alias kcx="kubectx" | |
alias kd="kubectl describe" | |
alias ke="kubectl exec -it" | |
alias kg="kubectl get" | |
alias kgc='kubectl get componentstatuses' | |
alias kgp='kubectl get pods' | |
alias kgs='kubectl get svc' | |
alias kl="kubectl logs" | |
alias kns="kubectl-ns" | |
alias kp="kubectl get pods -o wide" | |
alias kpf="kubectl port-forward" | |
alias ktc="watch kubectl top pods --containers" | |
alias ktn="watch kubectl top nodes" | |
alias ktp="watch kubectl top pods" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PATH | |
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:/usr/local/go/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
[[ $(id -u) -ne 0 ]] || { export ZSH="/root/.oh-my-zsh" } | |
[[ $(id -u) -eq 0 ]] || { export ZSH="/home/${USER}/.oh-my-zsh" } | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="agnoster" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
export UPDATE_ZSH_DAYS=30 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS="true" | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Skip verification of insecure directories | |
ZSH_DISABLE_COMPFIX="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
HIST_STAMPS="yyyy-mm-dd" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
# $ cd /home/${USER}/.oh-my-zsh/custom/plugins/ | |
# $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git | |
# $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git | |
plugins=( | |
ansible | |
aws | |
cp | |
dnf | |
firewalld | |
git | |
golang | |
python | |
sudo | |
tmux | |
vagrant | |
vault | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# GnuPG | |
GPG_TTY=$(tty) | |
export GPG_TTY | |
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | |
gpgconf --launch gpg-agent | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
. ~/.zsh_aliases | |
# Enabling shell autocompletion | |
autoload bashcompinit && bashcompinit | |
autoload -Uz compinit && compinit | |
source <(kubectl completion zsh) | |
source <(oc completion zsh) | |
source <(helm completion zsh) | |
complete -o nospace -C /usr/bin/terraform terraform | |
complete -C '/usr/local/bin/aws_completer' aws | |
# tabtab source for packages | |
# uninstall by removing these lines | |
# [[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true | |
# terminal multiplexer (tmux) | |
if [[ -z "$TMUX" ]]; then | |
# tmux new-session -A -s default | |
# tmux -f ~/.tmux/default.conf attach | |
tmux -f ~/.tmux/default.conf new-session -A -s default | |
fi | |
# Adding timestamp to each line on Zsh | |
# [2023-07-27 | 16:24:53] | |
RPROMPT="%{$fg[yellow]%}[%D{%F} | %*]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat ~/.zshrc | grep -v '^#' | grep -v '^$' > ~/.zshrc_without_comments