Merge branch 'master' of https://git.inhji.de/inhji/dotfiles
Bu işleme şunda yer alıyor:
işleme
93f1e961c9
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
```
|
|
@ -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
|
||||
-----------------
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit a7252e687ab65fc8dd04cfaa2be09446c84e312a
|
|
@ -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()
|
|
@ -1,7 +0,0 @@
|
|||
'.text.html.elixir':
|
||||
'Template':
|
||||
'prefix': '%'
|
||||
'body': '<% $1 %>'
|
||||
'End Template':
|
||||
'prefix': 'end'
|
||||
'body': '<% end %>'
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
24
config/zshrc
24
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 )
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Yükleniyor…
Yeni konuda referans