mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 16:26:10 +01:00
zsh ""fun""
This commit is contained in:
@@ -60,6 +60,8 @@ alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.ar
|
|||||||
# Ring the terminal bell
|
# Ring the terminal bell
|
||||||
alias ding="tput bel"
|
alias ding="tput bel"
|
||||||
|
|
||||||
|
# Backs files up using rsync, not preserving linux perms (for external drives)
|
||||||
|
alias backup="rsync -vrltD --progress"
|
||||||
# Intuitive map function
|
# Intuitive map function
|
||||||
# For example, to list all directories that contain a certain file:
|
# For example, to list all directories that contain a certain file:
|
||||||
# find . -name .gitattributes | map dirname
|
# find . -name .gitattributes | map dirname
|
||||||
|
|||||||
1595
zsh/.p10k.zsh
Normal file
1595
zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
4
zsh/.zprofile
Normal file
4
zsh/.zprofile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
# Created by `pipx` on 2021-05-28 22:30:25
|
||||||
|
export PATH="$PATH:/home/vectorkappa/.local/bin"
|
||||||
|
export TERMINAL="alacritty"
|
||||||
9
zsh/.zshenv
Normal file
9
zsh/.zshenv
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Copyright (c) 2021 Piotr Patalong
|
||||||
|
#
|
||||||
|
# This software is released under the MIT License.
|
||||||
|
# https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
export PATH="$PATH:/home/vectorkappa/.cargo/bin:/home/vectorkappa/.local/bin"
|
||||||
|
export QT_STYLE_OVERRIDE=kvantum
|
||||||
|
export PATH="$PATH:/home/vectorkappa/.local/bin"
|
||||||
|
export TERMINAL="alacritty"
|
||||||
17
zsh/.zshrc
17
zsh/.zshrc
@@ -1,3 +1,10 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
###############################################################################################################################
|
###############################################################################################################################
|
||||||
# Initialization #
|
# Initialization #
|
||||||
###############################################################################################################################
|
###############################################################################################################################
|
||||||
@@ -172,7 +179,6 @@ zplug "plugins/thefuck", from:oh-my-zsh #Used interchangably wit
|
|||||||
zplug "lib/completion", from:oh-my-zsh
|
zplug "lib/completion", from:oh-my-zsh
|
||||||
zplug "mollifier/anyframe", from:github
|
zplug "mollifier/anyframe", from:github
|
||||||
# Misc. visual tweaks
|
# Misc. visual tweaks
|
||||||
zplug "oldratlee/hacker-quotes"
|
|
||||||
zplug "modules/prompt", from:prezto
|
zplug "modules/prompt", from:prezto
|
||||||
zplug "Tarrasch/zsh-autoenv"
|
zplug "Tarrasch/zsh-autoenv"
|
||||||
zplug "zpm-zsh/colors"
|
zplug "zpm-zsh/colors"
|
||||||
@@ -181,6 +187,7 @@ zplug "MichaelAquilina/zsh-autoswitch-virtualenv"
|
|||||||
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
||||||
zplug "zsh-users/zsh-autosuggestions", defer:3
|
zplug "zsh-users/zsh-autosuggestions", defer:3
|
||||||
zplug "RobSis/zsh-completion-generator", defer:3
|
zplug "RobSis/zsh-completion-generator", defer:3
|
||||||
|
zplug "romkatv/powerlevel10k", as:theme, depth:1
|
||||||
# Install plugins if there are plugins that have not been installed
|
# Install plugins if there are plugins that have not been installed
|
||||||
if ! zplug check --verbose; then
|
if ! zplug check --verbose; then
|
||||||
printf "Install? [y/N]: "
|
printf "Install? [y/N]: "
|
||||||
@@ -192,7 +199,9 @@ fi
|
|||||||
# Then, source plugins and add commands to $PATH
|
# Then, source plugins and add commands to $PATH
|
||||||
zplug load
|
zplug load
|
||||||
|
|
||||||
PATH="$PATH:/home/vectorkappa/.cargo/bin:/home/vectorkappa/.local/bin"
|
# prompt pure
|
||||||
|
|
||||||
prompt pure
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
(( ! ${+functions[p10k]} )) || p10k finalize
|
||||||
Reference in New Issue
Block a user