1
0

first commit

This commit is contained in:
2025-02-13 18:25:31 +01:00
commit 6136857a05
17 changed files with 1095 additions and 0 deletions

24
zsh/.zsh_aliases Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
alias tree='tree -CF --du -h'
# alias tf="aws-vault exec feedzai-main -d 8h -- terraform"
# alias tfi="aws-vault exec feedzai-main -d 8h -- terraform init"
# alias tfp="aws-vault exec feedzai-main -d 8h -- terraform plan -lock=false"
# alias tfa="aws-vault exec feedzai-main -d 8h -- terraform apply"
# alias tfu="aws-vault exec feedzai-main -d 8h -- terraform get -update"
#
# alias tg="aws-vault exec feedzai-main -d 8h -- terragrunt"
# alias tgi="aws-vault exec feedzai-main -d 8h -- terragrunt init"
# alias tgp="aws-vault exec feedzai-main -d 8h -- terragrunt plan -lock=false"
# alias tga="aws-vault exec feedzai-main -d 8h -- terragrunt apply"
# alias tgu="aws-vault exec feedzai-main -d 8h -- terragrunt get -update"
# alias tgg="aws-vault exec feedzai-main -d 8h -- terragrunt graph-dependencies"
alias idot='dot -Tsvg -Goverlap=scale -Grankdir=RL -Gbgcolor="#282a36" -Ncolor="#f8f8f2" -Ecolor="#f8f8f2" -Nfontcolor="#f8f8f2" -Gfontname="PragmataPro Mono Liga Regular" -Gfontsize=13 -Nfontname="PragmataPro" -Nfontsize=13 -Nshape=box -Earrowhead=normal'
alias icat="kitty +kitten icat"
alias curltime="curl -w \"@$HOME/.curl-format.txt\" -o /dev/null -s "
alias vi=nvim
alias vim=nvim

3
zsh/.zshenv Normal file
View File

@@ -0,0 +1,3 @@
. "$HOME/.cargo/env"
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi

65
zsh/.zshrc Normal file
View File

@@ -0,0 +1,65 @@
export HISTFILE=~/.zsh_history
export HISTSIZE=5000000
export SAVEHIST=$HISTSIZE
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format.
setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history.
setopt HIST_FIND_NO_DUPS # Do not display a previously found event.
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate.
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again.
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space.
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file.
setopt SHARE_HISTORY # Share history between all sessions.
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# enable color support of ls and also add handy aliases
export CLICOLOR=1
zstyle ':completion:*:default' list-colors ''
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
SSH_ENV="$HOME/.ssh/agent-environment"
function start_ssh_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >"${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" >/dev/null
/usr/bin/ssh-add
}
# Source SSH settings, if applicable
#if [ -f "${SSH_ENV}" ]; then
# SSH_AGENT_PID="$(echo $(($(cat /proc/sys/kernel/pid_max) + 1)))"
# . "${SSH_ENV}" > /dev/null
# ps -ef | grep ${SSH_AGENT_PID} | grep 'ssh-agent$' > /dev/null || {
# start_ssh_agent;
# }
#else
# start_ssh_agent;
#fi
if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi
export PATH=~/.local/bin:$PATH
function set_win_title(){
echo -ne "\033]0; $(basename "$PWD") \007"
}
starship_precmd_user_func="set_win_title"
eval "$(starship init zsh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"