Archivo de configuración powerlevel10k
Esta sería una parte del archivo de configuración situado bajo ~/.p10k.zsh
# The list of segments shown on the left. Fill it with the most important segments.
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon # os identifier
dir # current directory
vcs # git status
command_execution_time
context
jenv
prompt_char # prompt symbol
)
...
# The list of segments shown on the right. Fill it with less important segments.
# Right prompt on the last prompt line (where you are typing your commands) gets
# automatically hidden when the input line reaches it. Right prompt above the
# last prompt line gets hidden if it would overlap with left prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
#status # exit code of the last command
#command_execution_time # duration of the last command
#background_jobs # presence of background jobs
#direnv # direnv status (https://direnv.net/)
#asdf # asdf version manager (https://github.com/asdf-vm/asdf)
#virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
#anaconda # conda environment (https://conda.io/)
#pyenv # python environment (https://github.com/pyenv/pyenv)
#goenv # go environment (https://github.com/syndbg/goenv)
#nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
#nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
#nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
# node_version # node.js version
# go_version # go version (https://golang.org)
# rust_version # rustc version (https://www.rust-lang.org)
# dotnet_version # .NET version (https://dotnet.microsoft.com)
# php_version # php version (https://www.php.net/)
# laravel_version # laravel php framework version (https://laravel.com/)
# java_version # java version (https://www.java.com/)
# package # name@version from package.json (https://docs.npmjs.com/files/package.json)
#rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
#rvm # ruby version from rvm (https://rvm.io)
#fvm # flutter version management (https://github.com/leoafarias/fvm)
#luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv)
#jenv # java version from jenv (https://github.com/jenv/jenv)
#plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
#perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
#phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
#scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
#haskell_stack # haskell version from stack (https://haskellstack.org/)
#kubecontext # current kubernetes context (https://kubernetes.io/)
#terraform # terraform workspace (https://www.terraform.io)
# terraform_version # terraform version (https://www.terraform.io)
#aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
#aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
#azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
#gcloud # google cloud cli account and project (https://cloud.google.com/)
#google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
#toolbox # toolbox name (https://github.com/containers/toolbox)
#context # user@hostname
#nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
#ranger # ranger shell (https://github.com/ranger/ranger)
#nnn # nnn shell (https://github.com/jarun/nnn)
#xplr # xplr shell (https://github.com/sayanarijit/xplr)
#vim_shell # vim shell indicator (:sh)
#midnight_commander # midnight commander shell (https://midnight-commander.org/)
#nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
# vpn_ip # virtual private network indicator
# load # CPU load
# disk_usage # disk usage
# ram # free RAM
# swap # used swap
#todo # todo items (https://github.com/todotxt/todo.txt-cli)
#timewarrior # timewarrior tracking status (https://timewarrior.net/)
#taskwarrior # taskwarrior task count (https://taskwarrior.org/)
# time # current time
# ip # ip address and bandwidth usage for a specified network interface
# public_ip # public IP address
# proxy # system-wide http/https/ftp proxy
# battery # internal battery
# wifi # wifi speed
# example # example user-defined segment (see prompt_example function below)
)
...
###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################
# Java color.
typeset -g POWERLEVEL9K_JENV_FOREGROUND=32
# Hide java version if it doesn't come from one of these sources.
typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
# If set to false, hide java version if it's the same as global:
# $(jenv version-name) == $(jenv global).
typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
# If set to false, hide java version if it's equal to "system".
typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true
# Custom icon.
# typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
Archivo de configuración emulador de terminal kitty
Este sería el archivo de configuración situado bajo ~/.config/kitty/kittyt.conf
:
enable_audio_bell no
#include color.ini
font_family HackNerdFonts
font_size 9
disable_ligatures never
url_color #61afef
url_style curly
map ctrl+left neighboring_window left
map ctrl+right neighboring_window right
map ctrl+up neighboring_window up
map ctrl+down neighboring_window down
map f1 copy_to_buffer a
map f2 paste_from_buffer a
map f3 copy_to_buffer b
map f4 paste_from_buffer b
cursor_shape beam
cursor_beam_thickness 1.8
mouse_hide_wait 3.0
detect_urls yes
repaint_delay 10
input_delay 3
sync_to_monitor yes
tab_bar_style powerline
inactive_tab_background #e06c75
active_tab_background #98c379
inactive_tab_foreground #000000
tab_bar_margin_color black
map ctrl+shift+enter new_window_with_cwd
map ctrl+shift+t new_tab_with_cwd
background_opacity 0.95
Archivo de configuración zsh
Este sería el archivo de configuración situado bajo ~/.zshrc
:
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
#
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
# Para evitar el error: 'xterm-new': unknown terminal type en el equipo remoto cuando se accede mediante SSH
export TERM=xterm-256color
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="robbyrussell"
# ZSH_THEME="agnoster"
ZSH_THEME="powerlevel10k/powerlevel10k"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git svn jenv z sudo)
source $ZSH/oh-my-zsh.sh
# Plugins
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#
# My custom aliases
alias ls="lsd"
alias cat="bat"
alias sdu="sudo dnf update"
alias smt="svn merge '^/trunk'"
alias mcc="mvn clean compile"
alias mci="mvn clean install"
alias mcp="mvn clean package"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh