added zsh variables and aliases
This commit is contained in:
parent
d5023d1f1a
commit
d43bf9d72f
@ -25,6 +25,8 @@ for option in "$@"; do
|
|||||||
zsh)
|
zsh)
|
||||||
[ ! -d "$HOME/.config/zsh" ] && mkdir -p "$HOME/.config/zsh"
|
[ ! -d "$HOME/.config/zsh" ] && mkdir -p "$HOME/.config/zsh"
|
||||||
link "$PWD/zsh/.zshrc" "$HOME/.config/zsh/.zshrc"
|
link "$PWD/zsh/.zshrc" "$HOME/.config/zsh/.zshrc"
|
||||||
|
link "$PWD/zsh/aliases" "$HOME/.config/zsh/aliases"
|
||||||
|
link "$PWD/zsh/variables" "$HOME/.config/zsh/variables"
|
||||||
curl -fLo $HOME/.config/zsh/zsh-autosuggestions.zsh --create-dirs \
|
curl -fLo $HOME/.config/zsh/zsh-autosuggestions.zsh --create-dirs \
|
||||||
https://raw.githubusercontent.com/zsh-users/zsh-autosuggestions/master/zsh-autosuggestions.zsh
|
https://raw.githubusercontent.com/zsh-users/zsh-autosuggestions/master/zsh-autosuggestions.zsh
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.config/zsh/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.config/zsh/zsh-syntax-highlighting
|
||||||
|
17
zsh/aliases
Normal file
17
zsh/aliases
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
alias sudo='/usr/bin/doas '
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias ll='ls -lAh --color=auto'
|
||||||
|
alias la='ls -A --color=auto'
|
||||||
|
alias l='ls -A --color=auto'
|
||||||
|
alias cp='rsync -ah --progress'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias sc='source /home/johannes/.config/zsh/.zshrc' # reload zsh configuration
|
||||||
|
alias cn='clear && neofetch'
|
||||||
|
alias live-server='live-server --port=1111 --host=127.0.0.1 --no-css-inject'
|
||||||
|
alias pac='doas pacman'
|
||||||
|
alias minecraft-launcher='minecraft-launcher --workDir /home/johannes/.local/share/minecraft'
|
||||||
|
# Typos
|
||||||
|
alias al="exa -lah"
|
||||||
|
alias vnim="nvim"
|
||||||
|
alias daos="doas "
|
||||||
|
alias celar="clear"
|
16
zsh/variables
Normal file
16
zsh/variables
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# XDG Base Directories
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
export XDG_STATE_HOME="$HOME/.local/state"
|
||||||
|
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
|
||||||
|
export XDG_CONFIG_DIRS="/etc/xdg"
|
||||||
|
# ~/ Cleanup
|
||||||
|
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||||
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||||
|
export ZDOTDIR="$HOME"/.config/zsh
|
||||||
|
export HISTFILE="${XDG_STATE_HOME}"/bash/history
|
||||||
|
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||||
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||||
|
|
||||||
|
export PATH="$PATH:$HOME/.local/bin:/sbin"
|
||||||
|
export DMENU_COLORS="-nf '#b0bec5' -nb '#000' -sb '#0a0a0a' -sf '#b0bec5' -fn 'JetBrainsMono Nerd Font-12'"
|
Loading…
x
Reference in New Issue
Block a user