This commit is contained in:
opalvault
2022-01-06 00:06:04 -08:00
parent 9616eae7dd
commit 6f29d506ef
84 changed files with 6934 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
: 1641441313:0;ls
: 1641441314:0;ls -la
: 1641441325:0;cd .config
: 1641441325:0;ls
: 1641441326:0;cd zsh
: 1641441327:0;ls
: 1641441335:0;source zshrcv
: 1641441336:0;source zshrc
: 1641441345:0;source zprofile
: 1641441361:0;cd ~/dotfiles/.config/zsh
: 1641441361:0;ls
: 1641441547:0;sudo pacman -S ttf-iosevka
: 1641441568:0;sudo pacman -S ttc-iosevka
: 1641441988:0;ls
: 1641441990:0;cd
: 1641441991:0;ls -la
: 1641441994:0;cat .zshenv
: 1641441999:0;zshrcsource
: 1641442016:0;source ~/.config/zsh/zshrc
: 1641442022:0;ls
: 1641442312:0;sudo pacman -S grimshot
: 1641442319:0;yay -S grimshot
: 1641442335:0;ls
: 1641442344:0;which wl-clipboard
: 1641442372:0;sudo pacman -S wl-clipboard
: 1641442376:0;ls
: 1641442412:0;wofi
: 1641442505:0;man wofi
: 1641442542:0;cd ~/.config/wofi
: 1641442542:0;ls
: 1641442545:0;cat style.css
: 1641442548:0;cd co
: 1641442552:0;vim config
+15
View File
@@ -0,0 +1,15 @@
# Each new shell auto-imports all environment variables.
# Hence exporting needs to be done only once.
# Also, all non-login shells are descendants of a login shell.
# Ergo, exports need to be done in the login shell only.
# Hence, we put exports in .zprofile
# Only vars needed by external commands should be exported.
# Note that you can export vars w/out assigning a value to them.
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache
export XDG_DATA_HOME=~/.local/share
export XDG_STATE_HOME=~/.config/zsh
export EDITOR=nvim
export VISUAL=nvim
xmodmap ~/.config/xmodmap/xmodmap
+20
View File
@@ -0,0 +1,20 @@
# ~ Guix #
alias install="sudo pacman -S"
alias remove="sudo pacman -R"
alias search="pacman -Ss"
alias upgrade="sudo pacman -Syyu"
# ~ Commands ~ #
alias ip="ip -c"
alias rm="rm -i"
alias ols="ls-with-file-mode-bits.sh"
# ~ Derp ~ #
alias unmount="umount"
alias please="sudo"
alias yeet="rm -rf"
alias :q='echo This aint a file, dingus.'
alias :wq='echo This aint a file, dingus.'
# ~ Source Zsh Configuration ~ #
alias zshrcsource="source ~/dotfiles/.config/zsh/zshrc"
+5
View File
@@ -0,0 +1,5 @@
# ~ Move files to trash folder instead ~ #
del () { mv "$@" $HOME/.local/share/trash/files/.; }
# Make directory and CD into it.
mk () { mkdir -p -- "$1" && cd -P -- "$1" }
+9
View File
@@ -0,0 +1,9 @@
if [[ -z "$XDG_CONFIG_HOME" ]]
then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
then
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
fi
+29
View File
@@ -0,0 +1,29 @@
# Sometimes SSH'ing with Emacs is ungraceful.
# To remedy this I disable the zsh line editor.
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
#### ~~~~ General ~~~~ #####
export ZSH="$XDG_CONFIG_HOME/oh-my-zsh"
HISTFILE=$XDG_CONFIG_HOME/zsh/.history
ZSH_THEME="mrtazz"
DISABLE_AUTO_UPDATE="true"
ENABLE_CORRECTION="true"
plugins=(git)
source $ZSH/oh-my-zsh.sh # This has to stay below plugins.
#### ~~~~ Autostart ~~~~ #####
pfetch
#### ~~~~ Path Additions ~~~~ #####
export PATH=/home/opal/scripts:$PATH # Scripts
#### ~~~~ Locale ~~~~ #####
export LANG=en_US.UTF-8
#### ~~~~ Import ~~~~ #####
ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases"
FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
source $ALIAS_LOCATION
source $FUNCTION_LOCATION