mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-03 23:47:25 -04:00
Manage more common dotfiles from shell profiles
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# WAYLAND ENV
|
# WAYLAND ENV
|
||||||
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
|
||||||
export WAYLAND_PROTOCOLS_DATADIR="/usr/share/wayland-protocols"
|
export WAYLAND_PROTOCOLS_DATADIR="/usr/share/wayland-protocols"
|
||||||
|
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||||
|
|
||||||
# XDG ENV
|
# XDG BASE ENV
|
||||||
export XDG_DATA_HOME="$HOME"/.local/share
|
export XDG_DATA_HOME="$HOME"/.local/share
|
||||||
export XDG_CONFIG_HOME="$HOME"/.config
|
export XDG_CONFIG_HOME="$HOME"/.config
|
||||||
export XDG_STATE_HOME="$HOME"/.local/state
|
export XDG_STATE_HOME="$HOME"/.local/state
|
||||||
@@ -14,7 +14,14 @@ export XDG_CACHE_HOME="$HOME"/.cache
|
|||||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
||||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
||||||
|
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
||||||
|
export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
|
||||||
|
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||||
|
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||||
|
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
||||||
|
export GOPATH="$XDG_DATA_HOME"/go
|
||||||
|
|
||||||
|
# MISC SETTINGS
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export BUILDDIR=/tmp/makepkg
|
export BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
# shell settings (this section impacts shell functionality)
|
# Shell settings
|
||||||
HISTFILE="$XDG_CACHE_HOME"/zsh-histfile
|
HISTFILE="$XDG_CACHE_HOME"/zsh-histfile
|
||||||
HISTSIZE=2500
|
HISTSIZE=2500
|
||||||
SAVEHIST=2000
|
SAVEHIST=2000
|
||||||
@@ -9,7 +9,7 @@ unsetopt beep
|
|||||||
bindkey -e
|
bindkey -e
|
||||||
zstyle :compinstall filename "/home/$USER/.zshrc"
|
zstyle :compinstall filename "/home/$USER/.zshrc"
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit -d "$XDG_CACHE_HOME"/zcompdump
|
||||||
PS1='%F{cyan}%n%f@%F{cyan}%m:%f%1~%f%F{cyan}|%#%f '
|
PS1='%F{cyan}%n%f@%F{cyan}%m:%f%1~%f%F{cyan}|%#%f '
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
@@ -17,7 +17,7 @@ bindkey '^[[H' beginning-of-line
|
|||||||
bindkey '^[[F' end-of-line
|
bindkey '^[[F' end-of-line
|
||||||
bindkey '^[[3~' delete-char
|
bindkey '^[[3~' delete-char
|
||||||
|
|
||||||
# random text art (this section can be safely deleted)
|
# Text art on clear/new shell
|
||||||
art_cat='%F{#fe8019}/\_,_/\
|
art_cat='%F{#fe8019}/\_,_/\
|
||||||
\ 0 0 /%f'
|
\ 0 0 /%f'
|
||||||
art_dog=' %F{#d79921}/___/
|
art_dog=' %F{#d79921}/___/
|
||||||
@@ -42,7 +42,7 @@ function term_clear() {
|
|||||||
zle -N zsh-redraw term_clear
|
zle -N zsh-redraw term_clear
|
||||||
bindkey "^L" zsh-redraw
|
bindkey "^L" zsh-redraw
|
||||||
|
|
||||||
# aliases
|
# Stock aliases
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
|
alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s Artix Install Script
|
echo rwinkhart\'s Artix Install Script
|
||||||
echo last updated May 08, 2024 \(rev. B\)
|
echo last updated July 10, 2024 \(rev. A\)
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo You will be asked some questions before installation.
|
echo You will be asked some questions before installation.
|
||||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user