57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
# 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
|
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
typeset -U path PATH
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
plugins=(
|
|
#git
|
|
zsh-autosuggestions
|
|
zsh-syntax-highlighting
|
|
)
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
|
# Display Pokemon-colorscripts
|
|
# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos
|
|
#pokemon-colorscripts --no-title -s -r #without fastfetch
|
|
#pokemon-colorscripts -r | fastfetch -c $HOME/.config/fastfetch/config-pokemon.jsonc --logo-type file-raw --logo-height 10 --logo-width 5 --logo -
|
|
|
|
# fastfetch. Will be disabled if above colorscript was chosen to install
|
|
#fastfetch -c $HOME/.config/fastfetch/config-compact.jsonc
|
|
|
|
# Set-up icons for files/directories in terminal using lsd
|
|
alias ls='lsd'
|
|
alias l='ls -l'
|
|
alias la='ls -a'
|
|
alias lla='ls -la'
|
|
alias lt='ls --tree'
|
|
alias vim="nvim"
|
|
alias edit="editor"
|
|
alias grep="grep -s"
|
|
# alias cat="batcat"
|
|
. "$HOME/.local/bin/env"
|
|
alias dirbuster='source /opt/dirbuster/DirBuster-1.0-RC1.sh'
|
|
|
|
alias fan-turbo='echo 1 | sudo tee /sys/devices/platform/asus-nb-wmi/hwmon/hwmon7/pwm1_enable'
|
|
alias fan-performance='echo 0 | sudo tee /sys/devices/platform/asus-nb-wmi/hwmon/hwmon7/pwm1_enable'
|
|
alias fan-silent='echo 2 | sudo tee /sys/devices/platform/asus-nb-wmi/hwmon/hwmon7/pwm1_enable'
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
# Load Angular CLI autocompletion.
|
|
source <(ng completion script)
|