mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-24 12:09:40 +01:00
Rearranging (#52)
This commit is contained in:
parent
53e4c32cef
commit
80d8b28cc9
32
.cat.sh
32
.cat.sh
@ -1,32 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Do not use this script unless you know what you are doing!
|
|
||||||
cat bashrc > ~/.bashrc
|
|
||||||
cat tmux.conf > ~/.tmux.conf
|
|
||||||
cat zshrc > ~/.zshrc
|
|
||||||
cat gitconfig > ~/.gitconfig
|
|
||||||
cat vimrc > ~/.vimrc
|
|
||||||
if [ ! -f ~/.oidentd.conf ]; then
|
|
||||||
cat oidentd.conf > ~/.oidentd.conf
|
|
||||||
fi
|
|
||||||
mkdir -p ~/.gnupg
|
|
||||||
cat gpg.conf > ~/.gnupg/gpg.conf
|
|
||||||
cat gpg-agent.conf > ~/.gnupg/gpg-agent.conf
|
|
||||||
cat sks-keyservers.netCA.pem > ~/.gnupg/sks-keyservers.netCA.pem
|
|
||||||
cat xsessionrc > ~/.xsessionrc
|
|
||||||
cat xinitrc > ~/.xinitrc
|
|
||||||
cat pastebinit.xml > ~/.pastebinit.xml
|
|
||||||
cat Xdefaults > ~/.Xdefaults
|
|
||||||
mkdir -p ~/.inxi
|
|
||||||
cat inxi.conf > ~/.inxi/inxi.conf
|
|
||||||
gpg --quiet --import .keys/0x4DB53CFE82A46728.asc&
|
|
||||||
gpg --quiet --import .keys/0xDAA6CA08F2E96AC7.asc&
|
|
||||||
gpg --quiet --import .keys/0x0C207F07B2F32B67.asc&
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
chmod a+xr chmod
|
|
||||||
bash -x ./chmod& 2>/dev/null
|
|
||||||
cat chmod > ~/chmod
|
|
||||||
cat wwwuser > ~/wwwuser
|
|
||||||
chmod a+xr ~/chmod
|
|
||||||
chmod a+r ~/wwwuser
|
|
||||||
# vim : set ft=sh :
|
|
||||||
#chmod 700 $HOME -R
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Do not use this script unless you know what you are doing!
|
|
||||||
set -x
|
|
||||||
cat .bash_aliases.MIKAELA_GREP > ~/.bash_aliases
|
|
||||||
cat .zsh_aliases.MIKAELA_GREP > ~/.zsh_aliases
|
|
||||||
cat .gitconfig.MIKAELA_GREP > ~/.gitconfig
|
|
||||||
mkdir -p ~/.gnupg
|
|
||||||
cat sks-keyservers.netCA.pem > ~/.gnupg/sks-keyservers.netCA.pem
|
|
||||||
cat .gpg.conf.MIKAELA_GREP > ~/.gnupg/gpg.conf
|
|
||||||
cat .pastebinit.xml.MIKAELA_GREP > ~/.pastebinit.xml
|
|
||||||
cat .environment.MIKAELA_GREP > ~/.environment
|
|
||||||
cat .gitconfig.MIKAELA_GREP > ~/.gitconfig
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
cat .keys/ssh > ~/.ssh/authorized_keys
|
|
||||||
touch ~/.MIKAELA_GREP
|
|
||||||
set +x
|
|
||||||
# vim : set ft=sh :
|
|
16
.mikaela_install
Executable file
16
.mikaela_install
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Do not use this script unless you know what you are doing!
|
||||||
|
set -x
|
||||||
|
cat .mikaela/bash_aliases> ~/.bash_aliases
|
||||||
|
cat .mikaela/zsh_aliases > ~/.zsh_aliases
|
||||||
|
cat .mikaela/gitconfig > ~/.gitconfig
|
||||||
|
mkdir -p ~/.gnupg
|
||||||
|
cat .mikaela/gpg.conf> ~/.gnupg/gpg.conf
|
||||||
|
cat .mikaela/pastebinit.xml > ~/.pastebinit.xml
|
||||||
|
cat .mikaela/environment > ~/.environment
|
||||||
|
cat .mikaela/gitconfig > ~/.gitconfig
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
cat .mikaela/keys/ssh > ~/.ssh/authorized_keys
|
||||||
|
touch ~/.MIKAELA_GREP
|
||||||
|
set +x
|
||||||
|
# vim : set ft=sh :
|
47
README.md
47
README.md
@ -1,45 +1,2 @@
|
|||||||
## What is this?
|
Config files that I wish to have everywhere. You could probably call this
|
||||||
|
repository as dotfiles, but historical reasons...
|
||||||
This repository has my rc-files other things that I want to have everywhere.
|
|
||||||
### Where does the name "shell-things" come from? / History
|
|
||||||
|
|
||||||
In the beginning this repository was only GitHub gist and contained only
|
|
||||||
two files, bashrc.
|
|
||||||
|
|
||||||
Then I moved to zsh and abandoned .bashrc.
|
|
||||||
|
|
||||||
Some time after that I got need for having both files so I merged them
|
|
||||||
into shell-things. At some point there came many other files from which
|
|
||||||
some aren't related to shells, but I don't want to rename it.
|
|
||||||
|
|
||||||
And why would I rename this? shell-things name is more unique than dotfiles
|
|
||||||
and this has been shell-things for years.
|
|
||||||
|
|
||||||
### How do I use this?
|
|
||||||
|
|
||||||
|
|
||||||
#### How you should use this.
|
|
||||||
|
|
||||||
The best way to use files things like this is to read them and copy-paste
|
|
||||||
the things that look useful to you to your own files.
|
|
||||||
|
|
||||||
#### How you will most likely use this.
|
|
||||||
|
|
||||||
If you are lazy or want to copy me as much as possible, you will install
|
|
||||||
git, curl and wget if you don't have them already and run
|
|
||||||
|
|
||||||
```
|
|
||||||
wget https://mikaela.github.io/shell-things/shell-things.bash
|
|
||||||
source shell-things.bash
|
|
||||||
shell-things
|
|
||||||
source ~/.$(echo $SHELL|cut -d/ -f3)rc
|
|
||||||
```
|
|
||||||
|
|
||||||
To upgrade, simply run `shell-things`.
|
|
||||||
|
|
||||||
##### How I use this.
|
|
||||||
|
|
||||||
As I know everything that is in this repository, I simply do the above.
|
|
||||||
|
|
||||||
I know everything that is in this file and how it affects my environment
|
|
||||||
and I want it, so I can do that.
|
|
||||||
|
6
chmod
6
chmod
@ -2,8 +2,6 @@
|
|||||||
# This script removes permissions from other people than the owner to
|
# This script removes permissions from other people than the owner to
|
||||||
# files/folders that they don't have access to and where they don't need
|
# files/folders that they don't have access to and where they don't need
|
||||||
# access.
|
# access.
|
||||||
## THIS SCRIPT HAS MOVED TO SHELL-THINGS AS "chmod"!
|
|
||||||
## https://raw.github.com/Mikaela/shell-things/master/chmod
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
chmod g-rwx,o-rwx $HOME -R
|
chmod g-rwx,o-rwx $HOME -R
|
||||||
@ -25,8 +23,4 @@ chmod a+r-wx,u+rw ~/.face
|
|||||||
chmod a+r-wx,u+rw ~/.forward
|
chmod a+r-wx,u+rw ~/.forward
|
||||||
chmod 600 ~/.netrc
|
chmod 600 ~/.netrc
|
||||||
|
|
||||||
if [ -f chmod.2 ]; then
|
|
||||||
./chmod.2
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
44
install
Executable file
44
install
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Do not use this script unless you know what you are doing!
|
||||||
|
set -x
|
||||||
|
|
||||||
|
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
|
||||||
|
|
||||||
|
cat rc/bashrc > ~/.bashrc
|
||||||
|
cat conf/tmux.conf > ~/.tmux.conf
|
||||||
|
cat rc/zshrc > ~/.zshrc
|
||||||
|
cat conf/gitconfig > ~/.gitconfig
|
||||||
|
cat rc/vimrc > ~/.vimrc
|
||||||
|
if [ ! -f ~/.oidentd.conf ]; then
|
||||||
|
cat conf/oidentd.conf > ~/.oidentd.conf
|
||||||
|
fi
|
||||||
|
mkdir -p ~/.gnupg
|
||||||
|
cat gpg/gpg.conf > ~/.gnupg/gpg.conf
|
||||||
|
cat gpg/gpg-agent.conf > ~/.gnupg/gpg-agent.conf
|
||||||
|
cat gpg/sks-keyservers.netCA.pem > ~/.gnupg/sks-keyservers.netCA.pem
|
||||||
|
cat rc/xsessionrc > ~/.xsessionrc
|
||||||
|
cat rc/xinitrc > ~/.xinitrc
|
||||||
|
cat conf/pastebinit.xml > ~/.pastebinit.xml
|
||||||
|
cat conf/Xdefaults > ~/.Xdefaults
|
||||||
|
mkdir -p ~/.inxi
|
||||||
|
cat conf/inxi.conf > ~/.inxi/inxi.conf
|
||||||
|
gpg --quiet --import .keys/0x4DB53CFE82A46728.asc&
|
||||||
|
gpg --quiet --import .keys/0xDAA6CA08F2E96AC7.asc&
|
||||||
|
gpg --quiet --import .keys/0x0C207F07B2F32B67.asc&
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
chmod a+xr chmod
|
||||||
|
bash -x ./chmod&
|
||||||
|
|
||||||
|
if [ -f $HOME/.MIKAELAGREP ]
|
||||||
|
then
|
||||||
|
mv $HOME/.MIKAELAGREP $MIKAELA_GREP
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$MIKAELA_GREP" ]
|
||||||
|
then
|
||||||
|
bash -x .mikaela_install
|
||||||
|
fi
|
||||||
|
|
||||||
|
set +x
|
||||||
|
# vim : set ft=sh :
|
||||||
|
#chmod 700 $HOME -R
|
47
install.run
47
install.run
@ -1,47 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Do not use this script unless you know what you are doing!
|
|
||||||
set -x
|
|
||||||
|
|
||||||
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
|
|
||||||
|
|
||||||
cat bashrc > ~/.bashrc
|
|
||||||
cat tmux.conf > ~/.tmux.conf
|
|
||||||
cat zshrc > ~/.zshrc
|
|
||||||
cat gitconfig > ~/.gitconfig
|
|
||||||
cat vimrc > ~/.vimrc
|
|
||||||
if [ ! -f ~/.oidentd.conf ]; then
|
|
||||||
cat oidentd.conf > ~/.oidentd.conf
|
|
||||||
fi
|
|
||||||
mkdir -p ~/.gnupg
|
|
||||||
cat gpg.conf > ~/.gnupg/gpg.conf
|
|
||||||
cat gpg-agent.conf > ~/.gnupg/gpg-agent.conf
|
|
||||||
cat sks-keyservers.netCA.pem > ~/.gnupg/sks-keyservers.netCA.pem
|
|
||||||
cat xsessionrc > ~/.xsessionrc
|
|
||||||
cat xinitrc > ~/.xinitrc
|
|
||||||
cat pastebinit.xml > ~/.pastebinit.xml
|
|
||||||
cat Xdefaults > ~/.Xdefaults
|
|
||||||
mkdir -p ~/.inxi
|
|
||||||
cat inxi.conf > ~/.inxi/inxi.conf
|
|
||||||
gpg --quiet --import .keys/0x4DB53CFE82A46728.asc&
|
|
||||||
gpg --quiet --import .keys/0xDAA6CA08F2E96AC7.asc&
|
|
||||||
gpg --quiet --import .keys/0x0C207F07B2F32B67.asc&
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
chmod a+xr chmod
|
|
||||||
bash -x ./chmod&
|
|
||||||
cat chmod > ~/chmod
|
|
||||||
chmod a+xr ~/chmod
|
|
||||||
|
|
||||||
if [ -f $HOME/.MIKAELAGREP ]
|
|
||||||
then
|
|
||||||
mv $HOME/.MIKAELAGREP $MIKAELA_GREP
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$MIKAELA_GREP" ]
|
|
||||||
then
|
|
||||||
echo "MIKAELA_GREP has been used previously, Installing/Upgrading."
|
|
||||||
bash -x ./.install.MIKAELA_GREP.run
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +x
|
|
||||||
# vim : set ft=sh :
|
|
||||||
#chmod 700 $HOME -R
|
|
Loading…
Reference in New Issue
Block a user