2021-11-10 21:01:30 +01:00
|
|
|
# Tmux
|
|
|
|
if [[ -z "${TMUX}" ]]; then
|
|
|
|
if ! tmux has-session; then
|
2021-11-11 02:16:41 +01:00
|
|
|
eval $(ssh-agent)
|
2021-11-10 21:01:30 +01:00
|
|
|
tmux new-session
|
|
|
|
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-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-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'
|