Compare commits

..

No commits in common. "6f29d27cd184aba6bedb01416fd3ee416c16839a" and "ae45f56e6ec73e296edecd24838030d73cbd1b21" have entirely different histories.

6 changed files with 3 additions and 40 deletions

View file

@ -1,31 +0,0 @@
set -o pipefail
list() {
type="$1"
shift
if test $# -eq 0 && echo $type | grep -q -- '-domains$'
then for user in $(list users)
do test -t 1 && echo "$user"
list "$type" "$user"
done
else if test -t 1
then sudo "/usr/local/hestia/bin/v-list-$type" "$@" | column -t
else sudo "/usr/local/hestia/bin/v-list-$type" "$@" | tail +3 | awk '{print $1}'
fi
fi
}
hestia() {
test $# -eq 0 && cd /usr/local/hestia && return 0
set -x
command=$1
shift
sudo $(which $command) "$@"
set +x
}
accessible() {
dir=/home/*/web/$1/public_html
sudo chmod -v 755 $dir
sudo chown -v :sudo $dir
}

View file

@ -1,3 +0,0 @@
prefix=${XDG_DATA_HOME}/npm
cache=${XDG_CACHE_HOME}/npm
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js

View file

@ -263,7 +263,6 @@ curlh() {
curl -v --location "$@" >/dev/null curl -v --location "$@" >/dev/null
} }
unalias u 2>/dev/null # for bash
u() { u() {
# Line below handy for users of netkeeper # Line below handy for users of netkeeper
sudo nft list ruleset | grep -q outall && echo "Suspending netkeeper" >&2 | echo 'pausing netkeeper for sysupgrade' | netkeeper 30 2>/dev/null sudo nft list ruleset | grep -q outall && echo "Suspending netkeeper" >&2 | echo 'pausing netkeeper for sysupgrade' | netkeeper 30 2>/dev/null
@ -332,9 +331,8 @@ sshl() {
! [[ "$1" =~ "delta*" ]] && ! [[ "$1" =~ "delta*" ]] &&
local pass=pass local pass=pass
test "$all" && test "$all" &&
find $XDG_CONFIG_HOME/bash/ \( -name aliases.bash -o -name "$1*.bash" \) -exec cat {} + | $pass ssh "$1" 'cat > .bash_aliases && grep -q .bash_aliases .bashrc || echo "source ~/.bash_aliases" | tee -a .bashrc' && $pass scp -O ~/.bash_aliases "$1:" &&
echo 'Updated .bash_aliases!' $pass ssh "$1" 'grep -q ".bash_aliases" .bashrc || echo "source ~/.bash_aliases" >>.bashrc'
#$pass ssh "$1" 'grep -q ".bash_aliases" .bashrc || echo "source ~/.bash_aliases" >>.bashrc'
if test -n "$pass" if test -n "$pass"
then pass ssh "$@" then pass ssh "$@"
else else

View file

@ -140,7 +140,7 @@ test "$DISPLAY" || exit 0
highlight "Desktop Applications" highlight "Desktop Applications"
subhighlight "Application symlinks" subhighlight "Application symlinks"
link "$XDG_CONFIG_HOME/bash/aliases.bash" "$HOME/.bashrc" link .bash_aliases "$HOME/.bashrc"
link "$HOME/.ssh/config" "$XDG_CONFIG_HOME/ssh" link "$HOME/.ssh/config" "$XDG_CONFIG_HOME/ssh"
link "$XDG_DATA_HOME/.cpan/CPAN/MyConfig.pm" "$XDG_CONFIG_HOME/cpan/MyConfig.pm" link "$XDG_DATA_HOME/.cpan/CPAN/MyConfig.pm" "$XDG_CONFIG_HOME/cpan/MyConfig.pm"

View file

@ -44,7 +44,6 @@ export KREW_ROOT="$XDG_DATA_HOME"/krew
export CARGO_HOME="$XDG_STATE_HOME"/cargo export CARGO_HOME="$XDG_STATE_HOME"/cargo
export RUSTUP_HOME="$XDG_STATE_HOME"/rustup export RUSTUP_HOME="$XDG_STATE_HOME"/rustup
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm export NVM_DIR="$XDG_DATA_HOME"/nvm
export N_PREFIX="$XDG_STATE_HOME"/n export N_PREFIX="$XDG_STATE_HOME"/n