2021-11-10 21:01:30 +01:00
|
|
|
# Tmux
|
|
|
|
if [[ -z "${TMUX}" ]]; then
|
|
|
|
if ! tmux has-session; then
|
2021-11-22 01:58:07 +01:00
|
|
|
eval $(ssh-agent -st 1h)
|
2021-11-13 17:19:02 +01:00
|
|
|
tmux new-session -n calculator bc -iq
|
2021-11-10 21:01:30 +01:00
|
|
|
else
|
|
|
|
tmux new-window
|
|
|
|
fi
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2021-11-02 18:38:35 +01:00
|
|
|
# Config
|
|
|
|
alias bashconfig='vim ${HOME}/.bashrc'
|
|
|
|
alias gitconfig='git config --global --edit'
|
2021-11-19 01:08:12 +01:00
|
|
|
alias i2pdconfig='vim ${HOME}/.i2pd/i2pd.conf'
|
2021-11-13 01:40:02 +01:00
|
|
|
alias sshconfig='vim ${HOME}/.ssh/config'
|
2021-11-02 18:38:35 +01:00
|
|
|
alias termuxconfig='vim ${HOME}/.termux/termux.properties'
|
2021-11-13 01:40:02 +01:00
|
|
|
alias tmuxconfig='vim ${HOME}/.tmux.conf'
|
2021-11-15 13:38:38 +01:00
|
|
|
alias torconfig='vim ${PREFIX}/etc/tor/torrc'
|
2021-11-02 18:38:35 +01:00
|
|
|
alias vimconfig='vim ${HOME}/.vimrc'
|
|
|
|
|
2021-11-02 18:10:48 +01:00
|
|
|
# Utils
|
2021-11-03 03:43:14 +01:00
|
|
|
alias copy='termux-clipboard-set'
|
2021-10-12 23:09:18 +02:00
|
|
|
alias l='ls'
|
2021-11-08 17:35:34 +01:00
|
|
|
alias lh='l --human-readable'
|
2021-10-12 23:09:18 +02:00
|
|
|
alias ll='lh -l'
|
2021-11-08 17:35:34 +01:00
|
|
|
alias la='ll --all'
|
2021-11-03 03:43:14 +01:00
|
|
|
alias paste='termux-clipboard-paste'
|
2021-11-28 23:30:13 +01:00
|
|
|
alias pip='pip --proxy "socks5h://${RANDOM}:${RANDOM}@127.0.0.1:9050"'
|
2021-11-22 18:16:50 +01:00
|
|
|
|
|
|
|
source ~/.bashrc-secret
|