Compare commits

..

2 Commits

Author SHA1 Message Date
Yax 35a80def92 Add useful aliases 2 months ago
Yax d946802b7b Remove unused tmux plugins 2 months ago

@ -120,14 +120,8 @@ bind-key M-4 send-keys "$FAVORITE_COMMAND4"
unbind r
bind r source-file ~/.tmux.conf \; display-message "config reloaded!"
# plugin last_command_output
set -g @command-capture-prompt-pattern '$ '
set -g @command-capture-editor-cmd 'gedit -'
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'laktak/extrakto'
set -g @plugin 'artemave/tmux_capture_last_command_output'
set -g @plugin "arcticicestudio/nord-tmux"
# run tpm

@ -40,6 +40,11 @@ export FAVORITE_COMMAND4="{{ .tmux_favorite4 }}"
alias cdd='cd {{ .deploydir }}'
export cdd={{ .deploydir }}
alias rm='rm --interactive --verbose'
alias mv='mv --interactive --verbose'
alias cp='cp --verbose --interactive'
alias dmesg='dmesg -T'
alias grep='grep --color'
# ---------------------------------------------------------------------------
# History
@ -82,6 +87,15 @@ alias vi=$EDITOR
# Tmux
# ---------------------------------------------------------------------------
if command -v tmux &>/dev/null; then
alias ta='tmux attach'
alias tkill="for s in \$(tmux list-sessions | awk -F ':' '{print \$1}' | fzf); do
tmux kill-session -t \$s;
done"
fi
# Function to set tmux window title
function set_tmux_title {
if [[ -n "$TMUX" ]]; then
@ -172,3 +186,15 @@ if command -v mvn &>/dev/null; then
# copy maven artifact
alias d="python3 ~/.local/bin/deploy.py '$cdd'"
fi
# ---------------------------------------------------------------------------
# Nix
# ---------------------------------------------------------------------------
if command nix-env &>/dev/null; then
alias nix-update='nix-channel --update && nix-env -u'
nix-search() {
nix-env -qa --description ".*$1.*"
}
fi
Loading…
Cancel
Save