Point dotfiles to install to /etc/skel.
This commit is contained in:
parent
d92ff80cfc
commit
0a58c5e103
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
apt-get -y install hexchat
|
apt-get -y install hexchat
|
||||||
|
|
||||||
HEXCHAT_HOME=$HOME/.config/hexchat
|
#HEXCHAT_HOME=$HOME/.config/hexchat
|
||||||
|
HEXCHAT_HOME=/etc/skel/.config/hexchat
|
||||||
mkdir -p ${HEXCHAT_HOME}
|
mkdir -p ${HEXCHAT_HOME}
|
||||||
|
|
||||||
cat > ${HEXCHAT_HOME}/chanopt.conf <<'EOF'
|
cat > ${HEXCHAT_HOME}/chanopt.conf <<'EOF'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## an initial tagging script for notmuch mail
|
## an initial tagging script for notmuch mail
|
||||||
|
# https://afew.readthedocs.io/en/latest/
|
||||||
|
|
||||||
#FIXME: NOT TESTED YET needs notmuch-mutt installed first
|
#FIXME: NOT TESTED YET needs notmuch-mutt installed first
|
||||||
#FIXME: add afew tagging: https://readthedocs.org/projects/afew/downloads/pdf/latest/
|
#FIXME: add afew tagging: https://readthedocs.org/projects/afew/downloads/pdf/latest/
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p ${HOME}/.zsh_aliases.d
|
DEST=/etc/skel
|
||||||
|
mkdir -p ${DEST}/.zsh_aliases.d
|
||||||
|
|
||||||
|
|
||||||
|
ALIAS_FILE=${DEST}/.zsh_aliases
|
||||||
|
|
||||||
ALIAS_FILE=${HOME}/.zsh_aliases
|
|
||||||
cat >> ${ALIAS_FILE} <<'EOF'
|
cat >> ${ALIAS_FILE} <<'EOF'
|
||||||
|
|
||||||
# Enable .zsh_aliases.d to keep aliases separate from env variables
|
# Enable .zsh_aliases.d to keep aliases separate from env variables
|
||||||
if [ -d ~/.zsh_aliases.d ]; then
|
if [ -d ~/.zsh_aliases.d ]; then
|
||||||
for f (~/.zsh_aliases.d/**/*(N.)) . $f
|
for f (~/.zsh_aliases.d/**/*(N.)) . $f
|
||||||
|
|
@ -13,10 +13,10 @@ fi
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value.
|
# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value.
|
||||||
echo "# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value." > ~/.zsh_aliases.d/002_sudo.zsh
|
echo "# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value." > ${DEST}/.zsh_aliases.d/002_sudo.zsh
|
||||||
echo 'alias sudo="sudo "' >> ~/.zsh_aliases.d/002_sudo.zsh
|
echo 'alias sudo="sudo "' >> ${DEST}/.zsh_aliases.d/002_sudo.zsh
|
||||||
|
|
||||||
cat > ~/.zsh_aliases.d/003_py-aliases.zsh << 'EOF'
|
cat > ${DEST}/.zsh_aliases.d/003_py-aliases.zsh << 'EOF'
|
||||||
_py_version() {
|
_py_version() {
|
||||||
PY_VERSIONS=(2 3)
|
PY_VERSIONS=(2 3)
|
||||||
|
|
||||||
|
|
@ -124,7 +124,7 @@ transfer() {
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
ALIAS_FILE=${HOME}/.zsh_aliases.d/003_local.sh
|
ALIAS_FILE=${DEST}/.zsh_aliases.d/003_local.sh
|
||||||
cat > ${ALIAS_FILE} <<'EOF'
|
cat > ${ALIAS_FILE} <<'EOF'
|
||||||
alias locate='locate --existing --follow --basename --ignore-case'
|
alias locate='locate --existing --follow --basename --ignore-case'
|
||||||
alias wget="wget --content-disposition -c"
|
alias wget="wget --content-disposition -c"
|
||||||
|
|
@ -136,11 +136,11 @@ alias less="less -R"
|
||||||
alias youtube-dl='youtube-dl --external-downloader=aria2c'
|
alias youtube-dl='youtube-dl --external-downloader=aria2c'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ALIAS_FILE=${HOME}/.zsh_aliases.d/003_lsd.sh
|
ALIAS_FILE=${DEST}/.zsh_aliases.d/003_lsd.sh
|
||||||
cat > ${ALIAS_FILE} <<'EOF'
|
cat > ${ALIAS_FILE} <<'EOF'
|
||||||
if [ -x /usr/bin/lsd ]; then
|
if [ -x /usr/bin/lsd ]; then
|
||||||
alias lsd="/usr/bin/lsd"
|
alias lsd="/usr/bin/lsd"
|
||||||
alias 'ls'="lsd"
|
# alias 'ls'="lsd"
|
||||||
alias 'll'="lsd -a"
|
alias 'll'="lsd -a"
|
||||||
alias 'lt'="lsd --tree"
|
alias 'lt'="lsd --tree"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue