Compare commits
3 commits
e1b65252cc
...
c04f17a4dc
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c04f17a4dc | ||
![]() |
dbe1459fb1 | ||
![]() |
3ffa6750f1 |
4 changed files with 21 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
silver-searcher
|
ripgrep
|
||||||
fd
|
fd
|
||||||
subversionClient
|
subversionClient
|
||||||
tig
|
tig
|
||||||
|
@ -34,6 +34,7 @@
|
||||||
google-cloud-sdk
|
google-cloud-sdk
|
||||||
navi
|
navi
|
||||||
glab
|
glab
|
||||||
|
gitlab-ci-local
|
||||||
|
|
||||||
# for zsh-fzf plugin
|
# for zsh-fzf plugin
|
||||||
fzf
|
fzf
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"*.sql.zst"
|
"*.sql.zst"
|
||||||
".direnv/"
|
".direnv/"
|
||||||
".venv/"
|
".venv/"
|
||||||
|
".gitlab-ci-local/"
|
||||||
];
|
];
|
||||||
userName = "fleaz";
|
userName = "fleaz";
|
||||||
userEmail = "mail@felixbreidenstein.de";
|
userEmail = "mail@felixbreidenstein.de";
|
||||||
|
|
|
@ -15,6 +15,16 @@
|
||||||
bind -n M-l select-pane -R
|
bind -n M-l select-pane -R
|
||||||
bind -n M-k select-pane -U
|
bind -n M-k select-pane -U
|
||||||
bind -n M-j select-pane -D
|
bind -n M-j select-pane -D
|
||||||
|
|
||||||
|
# Better marking of active windo
|
||||||
|
set-option -g pane-active-border-style fg=purple
|
||||||
|
set-option -g pane-border-lines double
|
||||||
|
|
||||||
|
# Synchonized panes
|
||||||
|
set -g @inactive_bg '#012938'
|
||||||
|
bind-key S setw synchronize-panes
|
||||||
|
bind-key e select-pane -e -P "bg=off"
|
||||||
|
bind-key d select-pane -d -P "bg=#{@inactive_bg}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,9 +21,11 @@
|
||||||
"watch" = "watch "; # https://unix.stackexchange.com/a/25329
|
"watch" = "watch "; # https://unix.stackexchange.com/a/25329
|
||||||
"kge" = "kubectl get events --sort-by='.lastTimestamp'";
|
"kge" = "kubectl get events --sort-by='.lastTimestamp'";
|
||||||
"devcontainer" = "docker compose -f docker-compose.yml -f .devcontainer/docker-compose.yml"; # Poor mans devcontainer
|
"devcontainer" = "docker compose -f docker-compose.yml -f .devcontainer/docker-compose.yml"; # Poor mans devcontainer
|
||||||
|
"k9s" = "k9s -c pods --splashless --logoless";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
setopt APPEND_HISTORY # Append history to global histfile on exit
|
setopt APPEND_HISTORY # Append history to global histfile on exit
|
||||||
|
setopt HIST_IGNORE_SPACE # dont save commands starting with a whitespace
|
||||||
|
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
|
|
||||||
|
@ -35,8 +37,13 @@
|
||||||
function get_k8s_info(){
|
function get_k8s_info(){
|
||||||
kubectl config get-contexts| grep "*" | awk '{print $3"/"$5}'
|
kubectl config get-contexts| grep "*" | awk '{print $3"/"$5}'
|
||||||
}
|
}
|
||||||
|
function secret_sesion(){
|
||||||
|
if ! test -v HISTFILE; then
|
||||||
|
echo %{$fg[red]%}NOHIST%{$reset_color%}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
RPS1='$(is_ssh) $(get_k8s_info)'
|
RPS1='$(secret_sesion) $(is_ssh) $(get_k8s_info)'
|
||||||
export EDITOR="nvim";
|
export EDITOR="nvim";
|
||||||
export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin";
|
export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin";
|
||||||
source <(kubectl completion zsh)
|
source <(kubectl completion zsh)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue