ZSH
This commit is contained in:
parent
f6a7963f1d
commit
20e67036df
22 changed files with 2414 additions and 246 deletions
32
config/shell/commonrc
Normal file
32
config/shell/commonrc
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/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'
|
||||
alias rm='rm -Iv --one-file-system'
|
||||
alias free='free -m'
|
||||
alias dmesg='dmesg --ctime'
|
||||
|
||||
# [ -f ~/.local/bin/colorSchemeApplyFzf ] && . ~/.local/bin/colorSchemeApplyFzf # Only applies RGB colors...
|
||||
POWERLINE_GO_DEFAULT_OPTS=(-colorize-hostname -max-width 25 -cwd-max-dir-size 10 -modules 'user,host,ssh,venv,cwd,perms,git' -modules-right 'jobs,exit,duration,load') # For reading by shell profiles
|
||||
FZF_DEFAULT_OPTS="--height 100% --layout=default"
|
||||
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
|
||||
trysource ~/.gscripts/gprofile
|
Loading…
Add table
Add a link
Reference in a new issue