Compare commits
28 Commits
@ -0,0 +1,54 @@
|
||||
[English](README.md)
|
||||
|
||||
# dotfiles
|
||||
|
||||
Repozytorium z moimi plikami konfiguracyjnymi.
|
||||
|
||||
## Contents
|
||||
|
||||
* [Pliki konfiguracyjne](#pliki-konfiguracyjne)
|
||||
* [Jak pobrać?](#jak-pobrać)
|
||||
* [Używając Git](#używając-git)
|
||||
* [Używając Curl](#używając-curl)
|
||||
* [Używając Wget](#używając-wget)
|
||||
* [Jak zainstalować?](#jak-zainstalować)
|
||||
* [Kontakt](#kontakt)
|
||||
* [Licencja](#licencja)
|
||||
|
||||
## Pliki konfiguracyjne
|
||||
|
||||
* [Bash](http://www.gnu.org/software/bash/) - [
|
||||
.bashrc](home/.bashrc)
|
||||
* [Git](https://git-scm.com/) - [config](home/.config/git/config)
|
||||
* [I2PD](https://i2pd.website/) - [i2pd.conf](home/.i2pd/i2pd.conf)
|
||||
* [SSH](https://www.openssh.com/) - [config](home/.ssh/config)
|
||||
* [Termux](https://termux.com/) - [termux.properties](home/.termux/termux.properties)
|
||||
* [Tmux](https://github.com/tmux/tmux) - [.tmux.conf](home/.tmux.conf)
|
||||
* [Tor](https://www.torproject.org/) - [torrc](usr/etc/tor/torrc)
|
||||
* [Vim](https://www.vim.org/) - [.vimrc](home/.vimrc)
|
||||
|
||||
## Jak pobrać?
|
||||
|
||||
### Używając Git
|
||||
|
||||
git clone --depth=1 git://codeberg.org/PandaCoderPL/dotfiles.git
|
||||
|
||||
### Używając Curl
|
||||
|
||||
curl -L https://codeberg.org/PandaCoderPL/dotfiles/archive/main.tar.gz | tar -xzf -
|
||||
|
||||
### Używając Wget
|
||||
|
||||
wget -O - https://codeberg.org/PandaCoderPL/dotfiles/archive/main.tar.gz | tar -xzf -
|
||||
|
||||
## Jak zainstalować?
|
||||
|
||||
rsync -qa home/ ~/
|
||||
|
||||
## Kontakt
|
||||
|
||||
[Kontakt](https://codeberg.org/PandaCoderPL/PandaCoderPL#contact)
|
||||
|
||||
## Licencja
|
||||
|
||||
[MIT](LICENSE)
|
@ -1,13 +1,31 @@
|
||||
# Tmux
|
||||
if [[ -z "${TMUX}" ]]; then
|
||||
if ! tmux has-session; then
|
||||
eval $(ssh-agent -st 1h)
|
||||
tmux new-session -n calculator bc -iq
|
||||
else
|
||||
tmux new-window
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
# Config
|
||||
alias bashconfig='vim ${HOME}/.bashrc'
|
||||
alias gitconfig='git config --global --edit'
|
||||
alias i2pdconfig='vim ${HOME}/.i2pd/i2pd.conf'
|
||||
alias sshconfig='vim ${HOME}/.ssh/config'
|
||||
alias termuxconfig='vim ${HOME}/.termux/termux.properties'
|
||||
alias tmuxconfig='vim ${HOME}/.tmux.conf'
|
||||
alias torconfig='vim ${PREFIX}/etc/tor/torrc'
|
||||
alias vimconfig='vim ${HOME}/.vimrc'
|
||||
|
||||
# Utils
|
||||
alias copy='termux-clipboard-set'
|
||||
alias l='ls'
|
||||
alias lh='l -h'
|
||||
alias lh='l --human-readable'
|
||||
alias ll='lh -l'
|
||||
alias la='ll -a'
|
||||
alias la='ll --all'
|
||||
alias paste='termux-clipboard-paste'
|
||||
alias pip='pip --proxy "socks5h://${RANDOM}:${RANDOM}@127.0.0.1:9050"'
|
||||
|
||||
source ~/.bashrc-secret
|
||||
|
@ -0,0 +1,65 @@
|
||||
[alias]
|
||||
a = add
|
||||
ae = a -e
|
||||
ba = branch
|
||||
bach = "!f() { \
|
||||
git ba \"$1\" \
|
||||
&& git ch \"$1\"; \
|
||||
}; f"
|
||||
bd = ba -d
|
||||
bfd = ba -D
|
||||
ch = checkout
|
||||
cl = clone
|
||||
cl1 = cl --depth=1
|
||||
co = commit -sm
|
||||
coa = "!f() { \
|
||||
local message=\"$1\"; \
|
||||
local author=\"$2\"; \
|
||||
git co \"${message}\" --author \"${author}\"; \
|
||||
}; f"
|
||||
cota = "!f() { \
|
||||
local version=\"v$(cat VERSION)\"; \
|
||||
git co \"$1\" \
|
||||
&& git ta \"${version}\"; \
|
||||
}; f"
|
||||
fu = "!f() { \
|
||||
git fetch upstream \
|
||||
&& git ch master \
|
||||
&& git rebase upstream/master; \
|
||||
}; f"
|
||||
fup = !git fu && git pat
|
||||
p = push
|
||||
pa = push --all
|
||||
pt = push --tags
|
||||
pat = !git pa && git pt
|
||||
r = remote
|
||||
ra = r add
|
||||
ru = r set-url
|
||||
rua = ru --add
|
||||
rud = ru --delete
|
||||
rl = r -v
|
||||
rr = r remove
|
||||
s = status
|
||||
t = tag
|
||||
ta = "!f() { \
|
||||
git t -am \"$1\" \"$1\"; \
|
||||
}; f"
|
||||
td = t -d
|
||||
tl = t -l
|
||||
[commit]
|
||||
gpgSign = true
|
||||
[core]
|
||||
editor = vim
|
||||
gitProxy = git-proxy
|
||||
pager = less
|
||||
[include]
|
||||
path = ~/.config/git/config-secret
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[http]
|
||||
proxy = socks5h://127.0.0.1:9050
|
||||
[http "http://*.loki"]
|
||||
proxy =
|
||||
[tag]
|
||||
forceSignAnnotated = true
|
||||
gpgSign = true
|
@ -0,0 +1,10 @@
|
||||
daemon = false
|
||||
ipv4 = true
|
||||
ipv6 = true
|
||||
share = 100
|
||||
[http]
|
||||
enabled = false
|
||||
[httpproxy]
|
||||
port = 4444
|
||||
[socksproxy]
|
||||
port = 4447
|
@ -0,0 +1,9 @@
|
||||
Host *.loki
|
||||
ProxyCommand nc %h %p
|
||||
|
||||
Host *
|
||||
AddKeysToAgent yes
|
||||
HashKnownHosts yes
|
||||
IdentitiesOnly yes
|
||||
ProxyCommand nc -x 127.0.0.1:9050 -X 5 %h %p
|
||||
User git
|
@ -0,0 +1,5 @@
|
||||
set-option -gs exit-empty off
|
||||
set-option -gs exit-unattached off
|
||||
|
||||
set-option -g base-index 1
|
||||
set-option -g bell-action none
|
@ -0,0 +1 @@
|
||||
nc -X 5 -x 127.0.0.1:9050 $1 $2
|
@ -0,0 +1,23 @@
|
||||
AvoidDiskWrites 1
|
||||
ControlPort 0
|
||||
ControlSocket 0
|
||||
HardwareAccel 1
|
||||
NoExec 0
|
||||
SafeLogging 1
|
||||
Sandbox 0
|
||||
TruncateLogFile 1
|
||||
|
||||
AllowNonRFC953Hostnames 0
|
||||
CircuitPadding 1
|
||||
ReducedCircuitPadding 1
|
||||
ClientOnly 1
|
||||
ClientUseIPv6 1
|
||||
ConnectionPadding 1
|
||||
HTTPTunnelPort 8118
|
||||
ReducedConnectionPadding 1
|
||||
DownloadExtraInfo 0
|
||||
EnforceDistinctSubnets 1
|
||||
SocksPort 9050 IsolateClientAddr IsolateSOCKSAuth IsolateClientProtocol IsolateDestPort IsolateDestAddr
|
||||
UseEntryGuards 1
|
||||
|
||||
%include /data/data/com.termux/files/usr/etc/tor/torrc-secret
|
Loading…
Reference in New Issue