Inhji Y. 9 months ago
parent
commit
93f1e961c9
10 changed files with 49 additions and 34 deletions
  1. +3
    -0
      .gitmodules
  2. +21
    -0
      POSTINSTALL.md
  3. +3
    -1
      README.md
  4. +1
    -0
      asdf
  5. +0
    -4
      config/atom/init.cson
  6. +0
    -7
      config/atom/snippets.cson
  7. +4
    -3
      config/beets/config
  8. +6
    -1
      config/zsh/aliases.zsh
  9. +11
    -13
      config/zshrc
  10. +0
    -5
      install.conf.yaml

+ 3
- 0
.gitmodules 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
- 0
POSTINSTALL.md 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"
```

+ 3
- 1
README.md 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
- 0
asdf

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

+ 0
- 4
config/atom/init.cson 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()

+ 0
- 7
config/atom/snippets.cson View File

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

+ 4
- 3
config/beets/config 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

+ 6
- 1
config/zsh/aliases.zsh 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"

+ 11
- 13
config/zshrc 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 )


+ 0
- 5
install.conf.yaml 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


Loading…
Cancel
Save