dotfiles/home/.bashrc

27 lines
625 B
Bash
Raw Permalink Normal View History

# Tmux
if [[ -z "${TMUX}" ]]; then
if ! tmux has-session; then
eval $(ssh-agent)
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 sshconfig='vim ${HOME}/.ssh/config'
alias termuxconfig='vim ${HOME}/.termux/termux.properties'
alias tmuxconfig='vim ${HOME}/.tmux.conf'
alias vimconfig='vim ${HOME}/.vimrc'
# Utils
alias copy='termux-clipboard-set'
alias l='ls'
alias lh='l --human-readable'
alias ll='lh -l'
alias la='ll --all'
alias paste='termux-clipboard-paste'