deleting old configs
This commit is contained in:
parent
894bf75687
commit
ab63f0d6a6
6 changed files with 0 additions and 123 deletions
|
@ -1,41 +0,0 @@
|
||||||
#!/bin/zsh
|
|
||||||
|
|
||||||
function felix_pwd_abbr {
|
|
||||||
base_pwd=$PWD
|
|
||||||
tilda_notation=${base_pwd//$HOME/\~}
|
|
||||||
pwd_list=(${(s:/:)tilda_notation})
|
|
||||||
list_len=${#pwd_list}
|
|
||||||
|
|
||||||
if [[ $list_len -le 1 ]]; then
|
|
||||||
echo $tilda_notation
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${pwd_list[1]} != '~' ]]; then
|
|
||||||
formed_pwd='/'
|
|
||||||
fi
|
|
||||||
|
|
||||||
firstchar=$(echo ${pwd_list[1]} | cut -c1)
|
|
||||||
if [[ $firstchar == '.' ]] ; then
|
|
||||||
firstchar=$(echo ${pwd_list[1]} | cut -c1,2)
|
|
||||||
fi
|
|
||||||
|
|
||||||
formed_pwd=${formed_pwd}$firstchar
|
|
||||||
|
|
||||||
for ((i=2; i <= $list_len; i++)) do
|
|
||||||
if [[ $i != ${list_len} ]]; then
|
|
||||||
|
|
||||||
firstchar=$(echo ${pwd_list[$i]} | cut -c1)
|
|
||||||
if [[ $firstchar == '.' ]] ; then
|
|
||||||
firstchar=$(echo ${pwd_list[$i]} | cut -c1,2)
|
|
||||||
fi
|
|
||||||
|
|
||||||
formed_pwd=${formed_pwd}/$firstchar
|
|
||||||
else
|
|
||||||
formed_pwd=${formed_pwd}/${pwd_list[$i]}
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo $formed_pwd
|
|
||||||
return
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
#git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
|
||||||
#git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
|
||||||
#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
ZSH_THEME="agnoster"
|
|
||||||
CASE_SENSITIVE="true"
|
|
||||||
ENABLE_CORRECTION="true"
|
|
||||||
plugins=(git kube-ps1 timer zsh-autosuggestions zsh-syntax-highlighting)
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
export DEFAULT_USER=$LOGNAME
|
|
||||||
source ~/.dotfiles/zsh/abbr_pwd
|
|
||||||
prompt_dir() {
|
|
||||||
prompt_segment blue $CURRENT_FG $(felix_pwd_abbr)
|
|
||||||
}
|
|
||||||
PROMPT=$PROMPT'$(kube_ps1) '
|
|
|
@ -1,17 +0,0 @@
|
||||||
# cleaning
|
|
||||||
rm -rf ~/.config/fish ~/.local/share/fish ~/.config/omf ~/.local/share/omf
|
|
||||||
# installing omf
|
|
||||||
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install > ~/install.omf
|
|
||||||
fish ~/install.omf --noninteractive
|
|
||||||
fish -c 'omf install bobthefish'
|
|
||||||
rm -rf ~/install.omf
|
|
||||||
# installing misc settings
|
|
||||||
mkdir -p ~/.config/fish/functions
|
|
||||||
echo 'function fish_greeting; end' > ~/.config/fish/functions/fish_greeting.fish
|
|
||||||
echo 'function fish_right_prompt; end' > ~/.config/fish/functions/fish_right_prompt.fish
|
|
||||||
touch ~/.fish.local
|
|
||||||
echo 'set -x VIRTUAL_ENV_DISABLE_PROMPT 1' > ~/.config/fish/config.fish
|
|
||||||
echo 'set -g theme_title_use_abbreviated_path no' >> ~/.config/fish/config.fish
|
|
||||||
echo 'set -g fish_prompt_pwd_dir_length 0' >> ~/.config/fish/config.fish
|
|
||||||
echo 'set -g theme_display_user yes' >> ~/.config/fish/config.fish
|
|
||||||
echo 'source ~/.fish.local' >> ~/.config/fish/config.fish
|
|
|
@ -1,14 +0,0 @@
|
||||||
#git clone --recursive https://github.com/mengelbrecht/slimline.git ~/.zsh/themes/slimline
|
|
||||||
source ~/.dotfiles/zsh/slimline_k8s_ctx.zsh
|
|
||||||
source ~/.dotfiles/zsh/slimline_k8s_ns.zsh
|
|
||||||
|
|
||||||
SLIMLINE_RIGHT_PROMPT_SECTIONS=""
|
|
||||||
SLIMLINE_LEFT_PROMPT_SECTIONS="virtualenv aws_profile k8s_context k8s_namespace cwd git exit_status execution_time newline user_host_info symbol"
|
|
||||||
SLIMLINE_USER_HOST_INFO_FORMAT="%F{green}|user|%F{white}@%F{cyan}|host|%f"
|
|
||||||
SLIMLINE_USER_HOST_INFO_ROOT_FORMAT="%F{red}|user|%F{white}@%F{cyan}|host|%f"
|
|
||||||
SLIMLINE_VIRTUALENV_FORMAT="%F{cyan}\UE73C |basename|%f"
|
|
||||||
SLIMLINE_AWS_PROFILE_FORMAT="%F{yellow} \uF270 |profile|%f"
|
|
||||||
SLIMLINE_SYMBOL_WORKING_FORMAT="%F{red}➜%f"
|
|
||||||
SLIMLINE_SYMBOL_READY_FORMAT="%F{243}➜%f"
|
|
||||||
SLIMLINE_MAX_EXEC_TIME=2
|
|
||||||
source ~/.zsh/themes/slimline/slimline.zsh
|
|
|
@ -1,18 +0,0 @@
|
||||||
slimline::section::k8s_context::precmd() {
|
|
||||||
unset slimline_section_k8s_context_output
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_context::async_task() {
|
|
||||||
kubectl config current-context
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_context::async_task_complete() {
|
|
||||||
slimline_section_k8s_context_output=$2
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_context::render() {
|
|
||||||
[[ -z "${slimline_section_k8s_context_output}" ]] && return
|
|
||||||
|
|
||||||
slimline::utils::expand "k8s_context" "%F{blue}\U2388 |output|%f" \
|
|
||||||
"output" "${slimline_section_k8s_context_output}"
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
slimline::section::k8s_namespace::precmd() {
|
|
||||||
unset slimline_section_k8s_namespace_output
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_namespace::async_task() {
|
|
||||||
kubectl config view --minify --output 'jsonpath={..namespace}'
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_namespace::async_task_complete() {
|
|
||||||
slimline_section_k8s_namespace_output=$2
|
|
||||||
}
|
|
||||||
|
|
||||||
slimline::section::k8s_namespace::render() {
|
|
||||||
[[ -z "${slimline_section_k8s_namespace_output}" ]] && return
|
|
||||||
|
|
||||||
slimline::utils::expand "k8s_namespace" "(%F{blue}|output|%f)" \
|
|
||||||
"output" "${slimline_section_k8s_namespace_output}"
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue