nie wiem co zmieniałem, a dużo tego było
This commit is contained in:
49
.zshrc
49
.zshrc
@ -66,7 +66,8 @@ plugins=(
|
||||
docker
|
||||
golang
|
||||
terraform
|
||||
aterminal
|
||||
asdf
|
||||
#aterminal
|
||||
)
|
||||
|
||||
|
||||
@ -127,8 +128,6 @@ export DISABLE_AUTO_TITLE='true'
|
||||
|
||||
TMPDIR=/home/paramah/.tmp/
|
||||
|
||||
eval "$(jira --completion-script-zsh)"
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
|
||||
TRAPWINCH() {
|
||||
@ -195,6 +194,7 @@ alias sourcec="docker run --publish 7080:7080 --rm --volume ~/.sourcegraph/confi
|
||||
|
||||
alias hadolint="docker run --rm -i hadolint/hadolint"
|
||||
|
||||
alias vim="nvim"
|
||||
|
||||
dd_telegram-desktop () { # launch telegram and send it to scratchpad
|
||||
(/usr/bin/telegram-desktop &)
|
||||
@ -231,14 +231,13 @@ xset b off
|
||||
#wal -i ~/Wallpapers/forrest_new.jpg
|
||||
#wal -i ~/Wallpapers/cyberpunk_city.jpg
|
||||
#xrdb ~/.Xresources
|
||||
#sudo sh -c 'echo -n "elantech" > /sys/bus/serio/devices/serio1/protocol'
|
||||
source <(hcloud completion zsh)
|
||||
#eval "$(starship init zsh)"
|
||||
#neofetch
|
||||
#
|
||||
|
||||
#### TODO
|
||||
|
||||
#source <(hcloud completion zsh)
|
||||
#eval "$(starship init zsh)"
|
||||
#eval "$(jira --completion-script-zsh)"
|
||||
#eval "$(_JZ_COMPLETE=source_zsh jz)"
|
||||
#eval "$(_HAJDUK_COMPLETE=source_zsh hajduk)"
|
||||
#eval "$(_H_COMPLETE=source_zsh h)"
|
||||
@ -251,34 +250,41 @@ alias tfw="terraform workspace"
|
||||
alias easy-rsa="docker run --rm -it -v /home/paramah/secrets/rsa:/pki -v /home/paramah/.aws:/root/.aws -e AWS_PROFILE=sandbox -e KMS_KEY_ID=test paramah/easyrsa"
|
||||
alias genpass="< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;"
|
||||
|
||||
tfv(){
|
||||
|
||||
|
||||
function tfv(){
|
||||
terraform validate -var-file=vars/$(terraform workspace show).tfvars $1
|
||||
}
|
||||
|
||||
tfp(){
|
||||
function tfp(){
|
||||
terraform plan -var-file=vars/$(terraform workspace show).tfvars $1
|
||||
}
|
||||
|
||||
tfa(){
|
||||
function tfa(){
|
||||
terraform apply -var-file=vars/$(terraform workspace show).tfvars $1
|
||||
}
|
||||
|
||||
tfc(){
|
||||
function tfc(){
|
||||
terraform console -var-file=vars/$(terraform workspace show).tfvars $1
|
||||
}
|
||||
|
||||
|
||||
gitc(){
|
||||
function gitc(){
|
||||
git commit -a -S $1
|
||||
}
|
||||
|
||||
ec2-list(){
|
||||
function ec2-list(){
|
||||
aws ec2 describe-instances \
|
||||
--filter "Name=instance-state-name,Values=running" \
|
||||
--query "Reservations[*].Instances[*].[PublicIpAddress, Tags[?Key=='Name'].Value|[0],PrivateIpAddress, LaunchTime, InstanceId]" \
|
||||
--output table
|
||||
}
|
||||
|
||||
function ec2-connect(){
|
||||
HOST=$(ec2-list | fzf | awk '{print $2}' |sed 's/|//')
|
||||
jssh $HOST
|
||||
}
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
@ -304,7 +310,7 @@ function prompt_docker_host() {
|
||||
hostport=$(echo $url | sed -e s,$user@,,g | cut -d/ -f1)
|
||||
host="$(echo $hostport | sed -e 's,:.*,,g')"
|
||||
|
||||
p10k segment -b blue -f black -t "${host}"
|
||||
p10k segment -b yellow -f black -t "${host}"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -312,6 +318,9 @@ function prompt_jzmode() {
|
||||
if [ -f .jz-mode ]; then
|
||||
p10k segment -b '#012845' -f white -t $(cat .jz-mode)
|
||||
fi
|
||||
if [ -f .ledo-mode ]; then
|
||||
p10k segment -b '#012845' -f white -t $(cat .ledo-mode)
|
||||
fi
|
||||
}
|
||||
|
||||
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS+=docker_host
|
||||
@ -356,3 +365,15 @@ then
|
||||
echo -en "\e]0;$(id --user --name)@$(hostname): ${1}\a"
|
||||
}
|
||||
fi
|
||||
PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/paramah/.config/tea/autocomplete.zsh"
|
||||
PROG=ledo _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/paramah/.config/ledo/autocomplete.zsh"
|
||||
|
||||
PATH="/home/paramah/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||
PERL5LIB="/home/paramah/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||
PERL_LOCAL_LIB_ROOT="/home/paramah/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||
PERL_MB_OPT="--install_base \"/home/paramah/perl5\""; export PERL_MB_OPT;
|
||||
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)
|
||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
|
||||
|
Reference in New Issue
Block a user