sporo zmian, nie pamiętam czego :)
This commit is contained in:
48
.zshrc
48
.zshrc
@ -10,6 +10,9 @@
|
||||
#
|
||||
#################################################################################
|
||||
|
||||
alias egrep="grep -E"
|
||||
alias fgrep="grep -F"
|
||||
|
||||
#Load my environment exports
|
||||
[ -f ~/.exports ] && source ~/.exports
|
||||
|
||||
@ -38,6 +41,7 @@ export PATH="/home/paramah/bin:$PATH"
|
||||
|
||||
#symfony
|
||||
export PATH="$HOME/.symfony/bin:$PATH"
|
||||
export PATH="/home/paramah/.linkerd2/bin:$PATH"
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
@ -53,6 +57,7 @@ source /usr/bin/virtualenvwrapper.sh
|
||||
plugins=(
|
||||
zsh-autosuggestions
|
||||
virtualenvwrapper
|
||||
virtualenv
|
||||
taskwarrior
|
||||
timewarrior
|
||||
archlinux
|
||||
@ -78,7 +83,7 @@ zplug 'ytet5uy4/fzf-widgets'
|
||||
zplug 'zsh-users/zaw'
|
||||
zplug "pbar1/zsh-terraform"
|
||||
zplug 'voronkovich/project.plugin.zsh'
|
||||
zplug romkatv/powerlevel10k, as:theme, depth:1
|
||||
#zplug romkatv/powerlevel10k, as:theme, depth:1
|
||||
zplug "jocelynmallon/zshmarks"
|
||||
zplug "djui/alias-tips"
|
||||
zplug "zpm-zsh/clipboard"
|
||||
@ -166,6 +171,8 @@ export goinside;
|
||||
##########################################################################################
|
||||
|
||||
|
||||
alias egrep="grep -E"
|
||||
alias fgrep="grep -F"
|
||||
alias l="tmuxp load -y "
|
||||
alias dc="docker-compose"
|
||||
alias d="docker"
|
||||
@ -202,6 +209,11 @@ alias vim="nvim"
|
||||
|
||||
alias j="jump"
|
||||
alias b="bookmark"
|
||||
alias r="ranger"
|
||||
|
||||
alias k="kubectl"
|
||||
|
||||
alias paste-online="wl-paste |lenpaste-cli"
|
||||
|
||||
dd_telegram-desktop () { # launch telegram and send it to scratchpad
|
||||
(/usr/bin/telegram-desktop &)
|
||||
@ -246,7 +258,7 @@ xset b off
|
||||
#eval "$(starship init zsh)"
|
||||
#eval "$(jira --completion-script-zsh)"
|
||||
#eval "$(_JZ_COMPLETE=source_zsh jz)"
|
||||
#eval "$(_HAJDUK_COMPLETE=source_zsh hajduk)"
|
||||
eval "$(_HAJDUK_COMPLETE=source_zsh hajduk)"
|
||||
#eval "$(_H_COMPLETE=source_zsh h)"
|
||||
eval "$(direnv hook zsh)"
|
||||
#eval "$(register-python-argcomplete gitlab)"
|
||||
@ -289,14 +301,29 @@ function ec2-list(){
|
||||
|
||||
function ec2-connect(){
|
||||
HOST=$(ec2-list | fzf --layout=reverse --border=none | awk '{print $4}' |sed 's/|//')
|
||||
jssh $HOST
|
||||
gum confirm "Add host to Stream Sage VPN route?" && skrzat mikrotik tovpn jazzy-l2tp jazzy ${HOST}
|
||||
USER=$(gum choose "ec2-user" "admin" "ubuntu" "bitnami")
|
||||
jssh $USER@$HOST
|
||||
}
|
||||
|
||||
function ec2-vpc-connect(){
|
||||
HOST=$(ec2-list | fzf --layout=reverse --border=none | awk '{print $6}')
|
||||
jssh $HOST
|
||||
USER=$(gum choose "ec2-user" "admin" "ubuntu" "bitnami")
|
||||
jssh $USER@$HOST
|
||||
}
|
||||
|
||||
function targetgroups-list(){
|
||||
LB_ARN=$(aws elbv2 describe-load-balancers --query "LoadBalancers[*][LoadBalancerName, LoadBalancerArn]" --output table |fzf | awk '{print $4}')
|
||||
echo LB_ARN
|
||||
}
|
||||
|
||||
function tester-toogle(){
|
||||
if [[ $(aws ec2 describe-instances --instance-ids $EC_TESTER_ID --query 'Reservations[].Instances[].State[].Name' --output text) = "running" ]] ; then \
|
||||
aws ec2 stop-instances --instance-ids $EC_TESTER_ID; \
|
||||
elif [[ $(aws ec2 describe-instances --instance-ids $EC_TESTER_ID --query 'Reservations[].Instances[].State[].Name' --output text) = "stopped" ]] ; then \
|
||||
aws ec2 start-instances --instance-ids $EC_TESTER_ID ; \
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
@ -311,7 +338,7 @@ source $HOME/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion
|
||||
autoload -Uz bashcompinit && bashcompinit
|
||||
complete -C aws_completer aws
|
||||
|
||||
eval "$(_MOLECULE_COMPLETE=source molecule)"
|
||||
# eval "$(_MOLECULE_COMPLETE=source molecule)"
|
||||
#. ~/.cache/wal/colors.sh
|
||||
#
|
||||
#
|
||||
@ -390,11 +417,16 @@ PERL_MM_OPT="INSTALL_BASE=/home/paramah/perl5"; export PERL_MM_OPT;
|
||||
PATH="/home/paramah/.local/share/gem/ruby/3.0.0/bin${PATH:+${PATH}}"; export PATH;
|
||||
|
||||
#source <(clockify-cli completion zsh)
|
||||
source <(kubectl completion zsh)
|
||||
source <(helm completion zsh)
|
||||
source <(kubectl completion zsh)
|
||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
|
||||
|
||||
typeset -g POWERLEVEL9K_DIR_CLASSES=(
|
||||
'~/Projects/jazzy.pro(|/*)' WORK ''
|
||||
'~/Projects/streamsage(|/*)' WORKSS ''
|
||||
'~/Projects/streamsage.io(|/*)' WORKSS ''
|
||||
'~/Projects/stream-sage(|/*)' WORKSS ''
|
||||
'~/Projects/Private(|/*)' PRIVATE ''
|
||||
'~/Projects/cynarski.dev(|/*)' PRIVATE ''
|
||||
'~/Projects/CyfroweNiebo(|/*)' NIEBO ''
|
||||
@ -405,3 +437,9 @@ typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='(j!)'
|
||||
typeset -g POWERLEVEL9K_DIR_WORKSS_VISUAL_IDENTIFIER_EXPANSION='<<o>>'
|
||||
typeset -g POWERLEVEL9K_DIR_PRIVATE_VISUAL_IDENTIFIER_EXPANSION='(℀ )'
|
||||
typeset -g POWERLEVEL9K_DIR_NIEBO_VISUAL_IDENTIFIER_EXPANSION='[☰ ]'
|
||||
typeset -g POWERLEVEL9K_AWS_SHOW_ON_DEMAND=''
|
||||
|
||||
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
#export GPG_TTY=$(tty)
|
||||
#gpgconf --launch gpg-agent
|
||||
#gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||
|
Reference in New Issue
Block a user