Last active
March 10, 2024 14:48
-
-
Save ikerib/978fc3f776f648b4d045c64954ccd672 to your computer and use it in GitHub Desktop.
zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# shell ingesez jarri | |
export LC_ALL=C | |
export ZSH="/home/local/PASAIA/iibarguren/.oh-my-zsh" | |
ZSH_THEME="agnoster" | |
HIST_STAMPS="mm/dd/yyyy" | |
plugins=(git zsh-syntax-highlighting zsh-autosuggestions ) | |
source $ZSH/oh-my-zsh.sh | |
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
#dev | |
alias d="docker" | |
alias cc="php bin/console cache:clear" | |
alias dc="docker-compose" | |
alias dcc="docker-compose exec app ./bin/console cache:clear" | |
alias dsf="docker-compose exec app ./bin/console" | |
alias dcomposer="docker-compose exec app composer" | |
alias dyarn="docker-compose exec app yarn" | |
alias sf="php bin/console" | |
alias cdw="cd ~/dev/www" | |
alias cdp="cd ~/dev/python" | |
alias cdv="cd ~/Dokumentuak/vpn" | |
alias dcd="docker-compose down" | |
alias dcu="docker-compose up -d" | |
alias dce="docker-compose exec" | |
alias dcl="docker-compose logs -f" | |
alias y="yarn encore dev --watch" | |
#system | |
alias c="clear" | |
alias df="duf" | |
alias find="fd" | |
alias htop="btop" | |
alias top="btop" | |
alias man="tldr" | |
alias netstat="netstat -natup" | |
alias s="source ~/.zshrc" | |
alias ping="gping" | |
alias puertos="nmap -p- --open -T5 -v -n" | |
alias zshconfig="vim ~/.zshrc" | |
alias ll='lsd -lh --group-dirs=first' | |
alias la='lsd -a --group-dirs=first' | |
alias l='lsd -alh --group-dirs=first' | |
alias lla='lsd -lha --group-dirs=first' | |
alias ls='lsd --group-dirs=first' | |
alias cat='bat' | |
alias catn='/usr/bin/cat' | |
export PATH=~/.npm-global/bin:$PATH | |
export PATH="$PATH:/home/local/PASAIA/iibarguren/dev/flutter/flutter/bin" | |
# FZF | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
# Funtzioak | |
lso() { | |
ls -l | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \ | |
*2^(8-i));if(k)printf("%0o ",k);print}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment