diff --git a/dot_aliases b/dot_aliases index 24cee09..5f0e1a5 100644 --- a/dot_aliases +++ b/dot_aliases @@ -1,7 +1,10 @@ -# aliases -alias clip='xsel --clipboard' -alias ls='ls --color=auto -h' -alias ll='ls --color=auto -h' +# colorize output +alias ls='ls --color=auto' +alias l='ls --color=auto -lFh' +alias ll='ll --color=auto' + +# always create subdirs +alias mkdir='mkdir -p' if type nvim > /dev/null; then alias vim=nvim @@ -11,6 +14,8 @@ if type bat > /dev/null; then alias cat='bat -pp' fi +alias now='date +"%y%m%d%H%M%S"' + # file type aliases alias -s txt=vim alias -s md=vim @@ -21,4 +26,10 @@ alias -s ini=vim alias -s conf=vim alias -s cfg=vim -alias now='date +"%y%m%d%H%M%S"' +# copy/paste for shell +alias pbcopy='xsel --clipboard --input' +alias pc=pbcopy +alias pbpaste='xsel --clipboard --output' +alias pp=pbpaste +alias clip='xsel --clipboard' + diff --git a/dot_environment b/dot_environment index ed0af4e..b1cc40b 100644 --- a/dot_environment +++ b/dot_environment @@ -18,3 +18,4 @@ fi export PATH="${PATH}:$HOME/.local/bin" export PATH="${PATH}:$HOME/bin" export PATH="${PATH}:$HOME/.cargo/bin" + diff --git a/dot_zsh_plugins.txt b/dot_zsh_plugins.txt index 3ffd4c9..70ee8cf 100644 --- a/dot_zsh_plugins.txt +++ b/dot_zsh_plugins.txt @@ -7,6 +7,7 @@ belak/zsh-utils path:editor # allow vim bindings zsh-users/zsh-history-substring-search zsh-users/zsh-completions # additionally completions zsh-users/zsh-autosuggestions +djui/alias-tips # theme romkatv/powerlevel10k @@ -15,6 +16,9 @@ ohmyzsh/ohmyzsh path:plugins/ssh-agent sunlei/zsh-ssh ohmyzsh/ohmyzsh path:plugins/git +ohmyzsh/ohmyzsh path:plugins/command-not-found +ohmyzsh/ohmyzsh path:plugins/common-aliases zsh-users/zsh-syntax-highlighting aikow/zsh-auto-ls + diff --git a/run_onchange_before_0_install-packages.sh b/run_onchange_before_0_install-packages.sh index bf76d41..31dd57d 100644 --- a/run_onchange_before_0_install-packages.sh +++ b/run_onchange_before_0_install-packages.sh @@ -5,7 +5,7 @@ set -e echo "Installing packages" sudo apt update -qq -for package in git neovim git ripgrep; do +for package in xsel git neovim git ripgrep; do if dpkg -s "$package" >/dev/null 2>&1; then echo $package is already installed. else