diff --git a/.gitmodules b/.gitmodules index 86c1875..245a843 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "z"] path = z url = https://github.com/rupa/z.git +[submodule "asdf"] + path = asdf + url = https://github.com/asdf-vm/asdf.git diff --git a/POSTINSTALL.md b/POSTINSTALL.md new file mode 100644 index 0000000..20e8775 --- /dev/null +++ b/POSTINSTALL.md @@ -0,0 +1,21 @@ +# Essential Packages + +```bash +apt install git zsh inotify-tools borgbackup +``` + +# Increase Inotify watchers + +See: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers + +``` +echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p +``` + +# Setup SSH + +See: https://wiki.archlinux.org/index.php/SSH_keys#Ed25519 + +``` +ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "johnnie@posteo.de" +``` \ No newline at end of file diff --git a/README.md b/README.md index 322f28d..3a1268a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ How to install ```bash # install zsh first -sudo apt install zsh +sudo apt install zsh git # do the dance git clone https://git.inhji.de/inhji/dotfiles.git .dotfiles @@ -16,6 +16,8 @@ git clone https://git.inhji.de/inhji/dotfiles.git .dotfiles chsh -s /usr/bin/zsh ``` +After that, read [POSTINSTALL](POSTINSTALL.md) + Tips ----------------- diff --git a/asdf b/asdf new file mode 160000 index 0000000..a7252e6 --- /dev/null +++ b/asdf @@ -0,0 +1 @@ +Subproject commit a7252e687ab65fc8dd04cfaa2be09446c84e312a diff --git a/config/atom/init.cson b/config/atom/init.cson deleted file mode 100644 index c64581a..0000000 --- a/config/atom/init.cson +++ /dev/null @@ -1,4 +0,0 @@ -# Fix Window not being shown when starting up maximized -# https://github.com/atom/atom/issues/19066 -if atom.applicationDelegate.isWindowMaximized() - atom.applicationDelegate.unmaximizeWindow() diff --git a/config/atom/snippets.cson b/config/atom/snippets.cson deleted file mode 100644 index 4890abf..0000000 --- a/config/atom/snippets.cson +++ /dev/null @@ -1,7 +0,0 @@ -'.text.html.elixir': - 'Template': - 'prefix': '%' - 'body': '<% $1 %>' - 'End Template': - 'prefix': 'end' - 'body': '<% end %>' diff --git a/config/beets/config b/config/beets/config index 1a8c03d..7ef0169 100644 --- a/config/beets/config +++ b/config/beets/config @@ -1,4 +1,5 @@ -directory: /media/biggie/Music -library: ~/.beets/library.db +directory: ~/Musik/Import +library: ~/.config/beets/library.db + import: - move: yes + move: yes diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 4bd7b02..54992e8 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -28,6 +28,11 @@ alias trz="trezor-agent" # Elixir alias phx="iex -S mix phx.server" +alias rel="mix git_ops.release" # SSH -alias tunnel="ssh -R 4001:localhost:4000 root@inhji.de" \ No newline at end of file +alias tunnel="ssh -R 4444:localhost:4000 root@inhji.de" +alias inhji="ssh root@inhji.de" + +# finds biggest file in current directory +alias ducks="du -hs * | sort -rh | head -5" diff --git a/config/zshrc b/config/zshrc index d2ec8b4..32749a0 100644 --- a/config/zshrc +++ b/config/zshrc @@ -1,28 +1,21 @@ # Path to your oh-my-zsh configuration. export DOTFILES=$HOME/.dotfiles -export PATH=$HOME/.local/bin:$HOME/.mix/escripts:/usr/local/go/bin:$PATH +export PATH=$HOME/.local/bin:$HOME/.mix/escripts:$PATH if [[ -n $SSH_CONNECTION ]]; then export EDITOR='vim' else - export EDITOR='atom' + export EDITOR='subl' fi -if [[ -d $HOME/.cargo ]]; then - source $HOME/.cargo/env -fi - -if [[ -d /home/linuxbrew ]]; then - eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) +if [[ -f $HOME/.zsh-custom ]]; then + source $HOME/.zsh-custom fi +# Load Pure fpath=("$HOME/.zfunctions" $fpath) - autoload -U promptinit; promptinit - -# optionally define some options PURE_CMD_MAX_EXEC_TIME=10 - prompt pure # Load z @@ -31,6 +24,11 @@ prompt pure # Load aliases . $DOTFILES/config/zsh/aliases.zsh +# Load asdf +. $DOTFILES/asdf/asdf.sh +fpath=($DOTFILES/asdf/completions $fpath) +autoload -Uz compinit +compinit + # Load dircolors eval $( dircolors -b $DOTFILES/config/zsh/dircolors.zsh ) - diff --git a/install.conf.yaml b/install.conf.yaml index 67ff865..b2ecec8 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -13,11 +13,6 @@ ~/.gitignore: force: true path: config/git/gitignore - ~/.atom/: - glob: true - path: config/atom/* - relink: true - force: true ~/.ssh/config: path: config/ssh/config force: true