Skip to content

Commit 9b5bcdf

Browse files
committed
Check-in
1 parent f6d492d commit 9b5bcdf

22 files changed

+721
-50
lines changed

.install.yaml

+17-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,27 @@
2020
~/.profile.d: shell/profile.d
2121
~/.functions.d: shell/functions.d
2222

23+
~/.zshrc: shell/zsh/zshrc.zsh
24+
25+
~/.ansiweatherrc:
26+
27+
2328
- git:
29+
~/.fonts/nerd-fonts:
30+
description: Nerd Fonts
31+
url: https://github.com/ryanoasis/nerd-fonts.git
32+
method: clone-or-pull
33+
2434
~/.nvm:
2535
description: Node Version Manager
2636
url: https://github.com/nvm-sh/nvm.git
2737
branch: v0.39.4
2838
method: clone-or-pull
29-
39+
~/.zplug:
40+
description: Zsh Plugin Manager
41+
url: https://github.com/zplug/zplug.git
42+
branch: 2.4.2
43+
method: clone-or-pull
3044

3145
- sudo:
3246
- link:
@@ -63,6 +77,8 @@
6377
fzf:
6478
curl:
6579
fd-find:
80+
shfmt:
81+
bat:
6682

6783
# prefer python3
6884
python-is-python3:

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
"git/ignore": "ignore"
55
},
66
"editor.rulers": [80,160],
7+
"[shellscript]": {
8+
"editor.formatOnSave": true,
9+
"files.eol": "\n"
10+
}
711
}

ansiweatherrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
location:Bradford,US
2+
units:imperial
3+
symbols:true
4+
ansi:true
5+
forecast:5
6+
show_uvi:true
7+
show_wind:true
8+
show_humidity:true
9+
show_pressure:true
10+
show_daylight:true
11+
show_feels_like:true
12+
background:\033[0m
13+
text:\033[36;1m
14+
data:\033[33;1m
15+
delimiter:\033[35m:
16+
dashes:\033[34m-
17+
forecast_text:forecast
18+
greeting_text:Weather in
19+
feels_like_text:Feels like
20+
humidity_text:Humidity
21+
pressure_text:Pressure
22+
sunrise_text:Sunrise
23+
sunset_text:Sunset
24+
wind_directions:N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW
25+
wind_text:Wind

dircolors

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pi=0;38;2;240;160;192:bd=0;38;2;207;106;76:fi=0:no=0:ex=1;38;2;255;185;100:tw=0:or=0;38;2;250;208;122;48;2;144;32;32:st=0:ln=0;38;2;250;208;122:*~=3;38;2;136;136;136:so=0;38;2;240;160;192:mi=0;38;2;250;208;122;48;2;144;32;32:cd=0;38;2;207;106;76:di=0;38;2;198;182;238:ow=0:*.a=1;38;2;255;185;100:*.o=3;38;2;136;136;136:*.p=0;38;2;129;151;191:*.r=0;38;2;129;151;191:*.h=0;38;2;129;151;191:*.c=0;38;2;129;151;191:*.d=0;38;2;129;151;191:*.m=0;38;2;129;151;191:*.z=4;38;2;250;208;122:*.t=0;38;2;129;151;191:*.ml=0;38;2;129;151;191:*.hi=3;38;2;136;136;136:*.ko=1;38;2;255;185;100:*.sh=0;38;2;129;151;191:*.bz=4;38;2;250;208;122:*.md=0;38;2;102;135;153:*.rm=0;38;2;218;208;133:*.js=0;38;2;129;151;191:*.rs=0;38;2;129;151;191:*.td=0;38;2;129;151;191:*.fs=0;38;2;129;151;191:*.py=0;38;2;129;151;191:*.cp=0;38;2;129;151;191:*.pp=0;38;2;129;151;191:*.lo=3;38;2;136;136;136:*.ts=0;38;2;129;151;191:*.gz=4;38;2;250;208;122:*.rb=0;38;2;129;151;191:*.nb=0;38;2;129;151;191:*.vb=0;38;2;129;151;191:*.hh=0;38;2;129;151;191:*.so=1;38;2;255;185;100:*.ui=0;38;2;153;173;106:*.hs=0;38;2;129;151;191:*.xz=4;38;2;250;208;122:*css=0;38;2;129;151;191:*.jl=0;38;2;129;151;191:*.pm=0;38;2;129;151;191:*.ex=0;38;2;129;151;191:*.go=0;38;2;129;151;191:*.la=3;38;2;136;136;136:*.bc=3;38;2;136;136;136:*.as=0;38;2;129;151;191:*.cc=0;38;2;129;151;191:*.mn=0;38;2;129;151;191:*.pl=0;38;2;129;151;191:*.cs=0;38;2;129;151;191:*.7z=4;38;2;250;208;122:*.cr=0;38;2;129;151;191:*.el=0;38;2;129;151;191:*.kt=0;38;2;129;151;191:*.ll=0;38;2;129;151;191:*.gv=0;38;2;129;151;191:*.ps=0;38;2;102;135;153:*.di=0;38;2;129;151;191:*.bak=3;38;2;136;136;136:*.arj=4;38;2;250;208;122:*.sxi=0;38;2;102;135;153:*.tmp=3;38;2;136;136;136:*.aux=3;38;2;136;136;136:*.ilg=3;38;2;136;136;136:*.yml=0;38;2;153;173;106:*.dox=0;38;2;118;151;214:*.xcf=0;38;2;218;208;133:*.pas=0;38;2;129;151;191:*.lua=0;38;2;129;151;191:*.toc=3;38;2;136;136;136:*.vim=0;38;2;129;151;191:*.eps=0;38;2;218;208;133:*.bib=0;38;2;153;173;106:*.htc=0;38;2;129;151;191:*.log=3;38;2;136;136;136:*.m4v=0;38;2;218;208;133:*.m4a=0;38;2;218;208;133:*.tbz=4;38;2;250;208;122:*.ipp=0;38;2;129;151;191:*.ltx=0;38;2;129;151;191:*.zst=4;38;2;250;208;122:*.inl=0;38;2;129;151;191:*.awk=0;38;2;129;151;191:*.pgm=0;38;2;218;208;133:*.txt=0;38;2;121;157;106:*.def=0;38;2;129;151;191:*.wma=0;38;2;218;208;133:*.csv=0;38;2;102;135;153:*.fnt=0;38;2;218;208;133:*.tar=4;38;2;250;208;122:*.ppm=0;38;2;218;208;133:*.cpp=0;38;2;129;151;191:*.swp=3;38;2;136;136;136:*.fsx=0;38;2;129;151;191:*.inc=0;38;2;129;151;191:*.c++=0;38;2;129;151;191:*.pbm=0;38;2;218;208;133:*.tif=0;38;2;218;208;133:*.gvy=0;38;2;129;151;191:*.com=1;38;2;255;185;100:*TODO=0;38;2;112;185;80:*.kex=0;38;2;102;135;153:*.flv=0;38;2;218;208;133:*.mp4=0;38;2;218;208;133:*.ini=0;38;2;153;173;106:*.deb=4;38;2;250;208;122:*.fls=3;38;2;136;136;136:*.git=3;38;2;136;136;136:*.ods=0;38;2;102;135;153:*hgrc=0;38;2;118;151;214:*.mpg=0;38;2;218;208;133:*.cgi=0;38;2;129;151;191:*.dll=1;38;2;255;185;100:*.bmp=0;38;2;218;208;133:*.hpp=0;38;2;129;151;191:*.idx=3;38;2;136;136;136:*.wav=0;38;2;218;208;133:*.svg=0;38;2;218;208;133:*.zip=4;38;2;250;208;122:*.tml=0;38;2;153;173;106:*.psd=0;38;2;218;208;133:*.rar=4;38;2;250;208;122:*.pps=0;38;2;102;135;153:*.iso=4;38;2;250;208;122:*.mir=0;38;2;129;151;191:*.bin=4;38;2;250;208;122:*.exs=0;38;2;129;151;191:*.pyc=3;38;2;136;136;136:*.pod=0;38;2;129;151;191:*.xls=0;38;2;102;135;153:*.cfg=0;38;2;153;173;106:*.fon=0;38;2;218;208;133:*.otf=0;38;2;218;208;133:*.blg=3;38;2;136;136;136:*.ind=3;38;2;136;136;136:*.ps1=0;38;2;129;151;191:*.bsh=0;38;2;129;151;191:*.rpm=4;38;2;250;208;122:*.bz2=4;38;2;250;208;122:*.mid=0;38;2;218;208;133:*.tex=0;38;2;129;151;191:*.pdf=0;38;2;102;135;153:*.odp=0;38;2;102;135;153:*.doc=0;38;2;102;135;153:*.ppt=0;38;2;102;135;153:*.mov=0;38;2;218;208;133:*.dot=0;38;2;129;151;191:*.avi=0;38;2;218;208;133:*.epp=0;38;2;129;151;191:*.bbl=3;38;2;136;136;136:*.fsi=0;38;2;129;151;191:*.tcl=0;38;2;129;151;191:*.sbt=0;38;2;129;151;191:*.ico=0;38;2;218;208;133:*.xml=0;38;2;102;135;153:*.hxx=0;38;2;129;151;191:*.kts=0;38;2;129;151;191:*.wmv=0;38;2;218;208;133:*.zsh=0;38;2;

shell/functions.d/program_exists

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
program_exists() {
3+
which "$@" >/dev/null 2>&1
4+
}

shell/profile

+10-21
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
11
#!/bin/sh
22
[ -d "${HOME}/.functions.d" ] && for file in "${HOME}/.functions.d"/*; do
33
# shellcheck disable=SC1090
4-
. "${file}";
5-
done;
4+
. "${file}"
5+
done
66

77
[ -d "${HOME}/.profile.d" ] && for file in "${HOME}/.profile.d"/*; do
88
# shellcheck disable=SC1090
9-
. "${file}";
10-
done;
9+
. "${file}"
10+
done
1111

12-
[ -d "${HOME}/.local/bin" ] && prepend_path "${HOME}/.local/bin";
13-
[ -d "${HOME}/.bin" ] && prepend_path "${HOME}/.bin";
14-
[ -d "${HOME}/bin" ] && prepend_path "${HOME}/bin";
15-
16-
17-
18-
export GPGKEY='C0CECF66705141610001CA728CE505CF86B53CC3';
19-
20-
21-
22-
23-
export CUDA_HOME=/usr/local/cuda-11
24-
25-
export NVM_DIR="$HOME/.nvm"
26-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
12+
[ -d "${HOME}/.local/bin" ] && prepend_path "${HOME}/.local/bin"
13+
[ -d "${HOME}/.bin" ] && prepend_path "${HOME}/.bin"
14+
[ -d "${HOME}/bin" ] && prepend_path "${HOME}/bin"
2715

16+
# Fix missing snap application icons in KDE
2817
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:/var/lib/snapd/desktop"
2918

19+
export GPGKEY='C0CECF66705141610001CA728CE505CF86B53CC3'
3020

31-
32-
SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket";
21+
SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"

shell/profile.d/lang-nodejs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/sh
22
# shellcheck disable=SC1091
3-
export NPM_PACKAGES="${HOME}/.npm-packages";
3+
export NPM_PACKAGES="${HOME}/.npm-packages"
44

5-
append_path "${NPM_PACKAGES}/bin";
6-
append_manpath "${NPM_PACKAGES}/share/man";
5+
append_path "${NPM_PACKAGES}/bin"
6+
append_manpath "${NPM_PACKAGES}/share/man"
77

88
#
99
# Node Version Manager
1010
#
11-
export NVM_DIR="${HOME}/.nvm";
11+
export NVM_DIR="${HOME}/.nvm"
1212

1313
if [ -s "${NVM_DIR}/nvm.sh" ]; then
14-
. "${NVM_DIR}/nvm.sh";
15-
fi;
14+
. "${NVM_DIR}/nvm.sh"
15+
fi
1616

1717
if [ -n "${BASH}" ] && [ -s "${NVM_DIR}/bash_completion" ]; then
18-
. "${NVM_DIR}/bash_completion";
19-
fi;
18+
. "${NVM_DIR}/bash_completion"
19+
fi

shell/profile.d/tool-gists

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/sh
2-
export GISTS="${HOME}/repos/gists";
2+
export GISTS="${HOME}/repos/gists"
33

44
if [ ! -d "${GISTS}" ]; then
5-
mkdir -p "${GISTS}";
6-
fi;
5+
mkdir -p "${GISTS}"
6+
fi
7+
8+
# shellcheck disable=SC2139
9+
alias gists="cd ${GISTS}"

shell/profile.d/tool-juju

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+

shell/profile.d/tools-gnupg

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
unset SSH_AGENT_PID
3+
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
4+
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)";
5+
export SSH_AUTH_SOCK;
6+
fi

shell/profile.d/tweak-history

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/bin/sh

shell/profile.d/tweak-language

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
export LANG=en_US.UTF-8
3+
export LC_CTYPE="${LANG}"
4+
export LC_ALL="${LANG}"

0 commit comments

Comments
 (0)