From a3331c0e5143aabae768ef846c712b4db40a5cc8 Mon Sep 17 00:00:00 2001 From: Quentin Godefroid Date: Tue, 2 Jan 2024 13:41:56 +0100 Subject: [PATCH] feat(zsh) Add openstack alias --- tmux/.tmux.conf | 8 ++++---- zsh/.zshrc | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 9c9e802..acae2dd 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -104,10 +104,10 @@ if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 1\)' 'se if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 1\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set -g mode-mouse off' # fix pane_current_path on new window and splits -if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind c; bind c new-window -c "#{pane_current_path}"' -if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'" -if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"' -if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"' +#if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind c; bind c new-window -c "#{pane_current_path}"' +#if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'" +#if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"' +#if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"' set -g history-limit 90000 set -g alternate-screen on diff --git a/zsh/.zshrc b/zsh/.zshrc index eb5412a..6fe5f1e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -330,25 +330,31 @@ status() { print "" } -alias kbe='setxkbmap be' -alias kus='setxkbmap us' +alias bat='batcat' alias dl='wget -r -k -T 5 -t 2 -U '\''Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0'\'' ' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias flip='shuf -i 0-1 -n 1 | sed -e '\''s/1/Pile/'\'' -e '\''s/0/Face/'\''' alias grep='grep --color=auto' -alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable' +alias ip="ip --color" +alias kbe='setxkbmap be' +alias kus='setxkbmap us' alias l='ls -CF' alias la='ls -A' alias ll='ls -lah' -alias osj='openstack -f json' +alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable' alias osc='openstack console log show' +alias osj='openstack -f json' +alias osm="openstack --os-cloud management_stack" +alias osmb="openstack --os-cloud management_stack_sbg" +alias osmd="openstack --os-cloud management_stack_de" alias oss='openstack server' alias psa='ps auxwwwf' alias toph='top -cHd1' alias vdir='vdir --color=auto' -alias ip="ip --color" +export BASTION_CONF_FILE=~/.config/ovh/bastion.env source ~/.webhosting/activate autoload -Uz compinit zstyle ':completion:*' menu select -fpath+=~/.zfunc \ No newline at end of file +fpath+=~/.zfunc +fpath+=${ZDOTDIR:-~}/.zsh_functions