2019-04-14 19:41:33 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bash / ZSH aliases and customizations
|
|
|
|
#
|
|
|
|
|
|
|
|
# Shell options
|
|
|
|
|
|
|
|
HISTSIZE=100000
|
|
|
|
HISTFILE="$HOME/.cache/shell_history"
|
|
|
|
|
|
|
|
## COMMAND CONFIGURATION
|
|
|
|
|
|
|
|
# Completion for existing commands
|
|
|
|
|
|
|
|
alias cp="cp -i --reflink=auto"
|
|
|
|
alias grep="grep --color=tty"
|
|
|
|
alias dd='dd status=progress'
|
2019-05-12 16:03:20 +02:00
|
|
|
alias rm='rm -v --one-file-system'
|
2019-04-14 19:41:33 +02:00
|
|
|
alias free='free -m'
|
|
|
|
alias dmesg='dmesg --ctime'
|
2019-04-28 04:05:45 +02:00
|
|
|
alias wget='wget --hsts-file $HOME/.cache/wget-hsts'
|
2019-04-14 19:41:33 +02:00
|
|
|
|
|
|
|
# [ -f ~/.local/bin/colorSchemeApplyFzf ] && . ~/.local/bin/colorSchemeApplyFzf # Only applies RGB colors...
|
2019-04-22 20:40:39 +02:00
|
|
|
POWERLINE_GO_DEFAULT_OPTS=(-colorize-hostname -max-width 25 -cwd-max-dir-size 10 -modules 'user,host,venv,cwd,perms,git' -modules-right 'jobs,exit,duration,load') # For reading by shell profiles
|
|
|
|
FZF_DEFAULT_OPTS="--height 40% --layout=default"
|
2019-04-14 19:41:33 +02:00
|
|
|
FZF_CTRL_T_OPTS="--preview '[[ -d {} ]] && ls -l --color=always {} || [[ \$(file --mime {}) =~ binary ]] && file --brief {} || (highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500'"
|
|
|
|
FZF_COMPLETION_OPTS="${FZF_CTRL_T_OPTS}"
|
|
|
|
|
|
|
|
## FUNCTIONS
|
|
|
|
|
|
|
|
## MISC
|
2019-04-25 22:54:51 +02:00
|
|
|
trysource ~/.config/gscripts/gprofile
|