Compare commits

...

2 Commits

Author SHA1 Message Date
Michel e02f287489 docs: scripts sourced after init 2024-02-06 09:31:54 +01:00
Michel 47afe474a8 fix(login): every-hour script & env var 2024-02-06 09:31:11 +01:00
3 changed files with 12 additions and 11 deletions

14
.zshrc
View File

@ -71,6 +71,12 @@ ENHANCD_ARG_DOUBLE_DOT='.'
ENHANCD_ENABLE_SINGLE_DOT=false
### fzf
#
# Scripts sourced by zvm_after_init()
#
# - https://github.com/junegunn/fzf#key-bindings-for-command-line
# - https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh
#
# Adapted from https://github.com/zimfw/fzf
#
@ -108,14 +114,6 @@ if (( ${+FZF_DEFAULT_COMMAND} )) export FZF_CTRL_T_COMMAND=${FZF_DEFAULT_COMMAND
#
FZF_CTRL_R_OPTS="--no-sort --exact"
# Scripts sourced by zvm_after_init()
#
# - source /usr/share/doc/fzf/examples/key-bindings.zsh
# https://github.com/junegunn/fzf#key-bindings-for-command-line
#
# - source /usr/share/doc/fzf/examples/completion.zsh
# https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh
# fzf: Alternate history (Ctrl-Win-R)
#
if [[ -f $ALT_HISTORY_FILE ]]; then

View File

@ -7,12 +7,14 @@ alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
## Cloud folder must exist
#
if [ -z "$NC_STORAGE" ]; then
echo "${fg[red]}NC_STORAGE environment variable not set."
autoload colors && colors
echo "${fg[cyan]}NC_STORAGE${fg[red]} environment variable not set."
exit 1
fi
if [ ! -d $NC_STORAGE ]; then
echo "${fg[cyan]}$NC_STORAGE ${fg[red]}is not a folder (in \$NC_STORAGE)."
autoload colors && colors
echo "${fg[cyan]}\$NC_STORAGE (=$NC_STORAGE)${fg[red]} is not a folder."
exit 2
fi

View File

@ -14,7 +14,8 @@ xterm -geometry 120x40 -title "Mount devices" -hold -e $HOME/bin/mount_dev.zsh
## Start periodic actions
#
$HOME/bin/every-hour.zsh
eval xterm -hold -e env $(cat ~/.config/environment.d/variables.conf) $HOME/bin/every-hour.zsh
## Wait for an Internet connection