oops for config

This commit is contained in:
Luke Smith
2020-04-08 19:10:00 -04:00
parent 7f334ff4b9
commit 9fe6802122
19 changed files with 57 additions and 57 deletions

View File

@@ -42,5 +42,5 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
# Some other stuff
alias \
magit="nvim -c MagitOnly" \
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:$HOME/.config}/shortcutrc" \
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc" \
weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \

View File

@@ -5,6 +5,6 @@ D ~/Downloads
m ~/Music
pp ~/Pictures
vv ~/Videos
cf ${XDG_CONFIG_HOME:$HOME/.config}
cf ${XDG_CONFIG_HOME:-$HOME/.config}
sc ~/.local/bin
mn /mnt

View File

@@ -1,15 +1,15 @@
bf ${XDG_CONFIG_HOME:$HOME/.config}/files
bd ${XDG_CONFIG_HOME:$HOME/.config}/directories
bw ${XDG_CONFIG_HOME:$HOME/.config}/bookmarks
cfa ${XDG_CONFIG_HOME:$HOME/.config}/aliasrc
bf ${XDG_CONFIG_HOME:-$HOME/.config}/files
bd ${XDG_CONFIG_HOME:-$HOME/.config}/directories
bw ${XDG_CONFIG_HOME:-$HOME/.config}/bookmarks
cfa ${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc
cfz $ZDOTDIR/.zshrc
cfv ${XDG_CONFIG_HOME:$HOME/.config}/nvim/init.vim
cfm ${XDG_CONFIG_HOME:$HOME/.config}/mutt/muttrc
cfx ${XDG_CONFIG_HOME:$HOME/.config}/Xresources
cfu ${XDG_CONFIG_HOME:$HOME/.config}/newsboat/urls
cfn ${XDG_CONFIG_HOME:$HOME/.config}/newsboat/config
cfmb ${XDG_CONFIG_HOME:$HOME/.config}/ncmpcpp/bindings
cfmc ${XDG_CONFIG_HOME:$HOME/.config}/ncmpcpp/config
cfk ${XDG_CONFIG_HOME:$HOME/.config}/sxhkd/sxhkdrc
cfi ${XDG_CONFIG_HOME:$HOME/.config}/i3/config
cfb ${XDG_CONFIG_HOME:$HOME/.config}/i3blocks/config
cfv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim
cfm ${XDG_CONFIG_HOME:-$HOME/.config}/mutt/muttrc
cfx ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources
cfu ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls
cfn ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/config
cfmb ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/bindings
cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/config
cfk ${XDG_CONFIG_HOME:-$HOME/.config}/sxhkd/sxhkdrc
cfi ${XDG_CONFIG_HOME:-$HOME/.config}/i3/config
cfb ${XDG_CONFIG_HOME:-$HOME/.config}/i3blocks/config

View File

@@ -2,7 +2,7 @@
# Basic vars
set shell sh
set previewer ${XDG_CONFIG_HOME:$HOME/.config}/lf/scope
set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope
set shellopts '-eu'
set ifs "\n"
set scrolloff 10
@@ -36,7 +36,7 @@ cmd delete ${{
cmd moveto ${{
set -f
clear; echo "Move to where?"
dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" &&
dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" &&
eval mv -iv $fx $dest &&
notify-send "🚚 File(s) moved." "File(s) moved to $dest."
}}
@@ -44,7 +44,7 @@ cmd moveto ${{
cmd copyto ${{
set -f
clear; echo "Copy to where?"
dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" &&
dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" &&
eval cp -ivr $fx $dest &&
notify-send "📋 File(s) copied." "File(s) copies to $dest."
}}
@@ -54,9 +54,9 @@ cmd bulkrename ${{
}}
# Bindings
map c $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)"
map c $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)"
map <c-f> $lf -remote "send $id select '$(fzf)'"
map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)"
map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)"
map gh
map g top
map D delete

View File

@@ -1,10 +1,10 @@
db_file "${XDG_CONFIG_HOME:$HOME/.config}/mpd/database"
log_file "${XDG_CONFIG_HOME:$HOME/.config}/mpd/log"
db_file "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/database"
log_file "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/log"
music_directory "~/Music"
playlist_directory "${XDG_CONFIG_HOME:$HOME/.config}/mpd/playlists"
pid_file "${XDG_CONFIG_HOME:$HOME/.config}/mpd/pid"
state_file "${XDG_CONFIG_HOME:$HOME/.config}/mpd/state"
sticker_file "${XDG_CONFIG_HOME:$HOME/.config}/mpd/sticker.sql"
playlist_directory "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/playlists"
pid_file "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/pid"
state_file "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/state"
sticker_file "${XDG_CONFIG_HOME:-$HOME/.config}/mpd/sticker.sql"
auto_update "yes"

View File

@@ -1,4 +1,4 @@
ncmpcpp_directory = ${XDG_CONFIG_HOME:$HOME/.config}/ncmpcpp
ncmpcpp_directory = ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp
#
##
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other

View File

@@ -1,13 +1,13 @@
let mapleader =","
if ! filereadable(expand('${XDG_CONFIG_HOME:$HOME/.config}/nvim/autoload/plug.vim'))
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ${XDG_CONFIG_HOME:$HOME/.config}/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:$HOME/.config}/nvim/autoload/plug.vim
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin('${XDG_CONFIG_HOME:$HOME/.config}/nvim/plugged')
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/goyo.vim'

View File

@@ -5,7 +5,7 @@ set column_ratios 1,3,4
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|lof|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$
set show_hidden false
set confirm_on_delete multiple
set preview_script ${XDG_CONFIG_HOME:$HOME/.config}/ranger/scope.sh
set preview_script ${XDG_CONFIG_HOME:-$HOME/.config}/ranger/scope.sh
set use_preview_script true
set automatically_count_files true
set open_all_images true
@@ -505,4 +505,4 @@ map Tn eval fm.open_console('shell eyeD3 -n "" ' + fm.thisfile.relative_path, po
#Downloading
map ytv console shell youtube-dl -ic%space
map yta console shell youtube-dl -xic%space
source ${XDG_CONFIG_HOME:$HOME/.config}/ranger/shortcuts.conf
source ${XDG_CONFIG_HOME:-$HOME/.config}/ranger/shortcuts.conf

View File

@@ -4,13 +4,13 @@ do
case "$1" in
"w") setbg "$file" & ;;
"c")
[ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:$HOME/.config}/directories | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
[ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/directories | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")"
[ -z "$destdir" ] && exit
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." &
;;
"m")
[ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:$HOME/.config}/directories | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
[ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/directories | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")"
[ -z "$destdir" ] && exit
[ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &

View File

@@ -1,5 +1,5 @@
" vim: filetype=vifm
source ${XDG_CONFIG_HOME:$HOME/.config}/vifm/vifmshortcuts
source ${XDG_CONFIG_HOME:-$HOME/.config}/vifm/vifmshortcuts
set vicmd=$EDITOR
set syscalls

View File

@@ -12,8 +12,8 @@ SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
# Load aliases and shortcuts if existent.
[ -f "${XDG_CONFIG_HOME:$HOME/.config}/shortcutrc" ] && source "${XDG_CONFIG_HOME:$HOME/.config}/shortcutrc"
[ -f "${XDG_CONFIG_HOME:$HOME/.config}/aliasrc" ] && source "${XDG_CONFIG_HOME:$HOME/.config}/aliasrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc"
# Basic auto/tab complete:
autoload -U compinit