This commit is contained in:
Inhji 2020-05-17 23:03:13 +02:00
commit 93f1e961c9
10 changed files with 49 additions and 34 deletions

3
.gitmodules vendored
View File

@ -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

21
POSTINSTALL.md Normal file
View File

@ -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"
```

View File

@ -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
-----------------

1
asdf Submodule

@ -0,0 +1 @@
Subproject commit a7252e687ab65fc8dd04cfaa2be09446c84e312a

View File

@ -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()

View File

@ -1,7 +0,0 @@
'.text.html.elixir':
'Template':
'prefix': '%'
'body': '<% $1 %>'
'End Template':
'prefix': 'end'
'body': '<% end %>'

View File

@ -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

View File

@ -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"
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"

View File

@ -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 )

View File

@ -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