From 8e85dae48638c659e15901638e2b1239e48954ff Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 19 Jul 2021 12:07:32 -0700 Subject: alias, hotkey --- .bashrc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 705089f..c32ba97 100644 --- a/.bashrc +++ b/.bashrc @@ -15,12 +15,20 @@ source /usr/share/fzf/key-bindings.bash # \e[m act like \e[0m, means reset so commands after it will not be colored # https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit # need \[ and \] around color codes so bash ignore color codes when calculating line wraps -PS1='\[\e[0;91m\][\u@\h \W]\$ \[\e[0m\]' +PS1="\[\e[0;91m\][\u@\h \W]\$ \[\e[0m\]" -alias ls='ls --color=auto' -alias ll='ls -lAh --color=auto' -alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME' -alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME' -alias sdcv='sdcv --color' +alias ls="ls --color=auto" +alias sdcv="sdcv --color" +alias grep="grep --color=auto" +alias diff="diff --color=auto" + +alias ll="ls -lAh --color=auto --group-directories-first" +alias cfgc="/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME" +alias cfgl="/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME" +#alias mlfm="mpv --loop-file=inf --video=no" +#alias mlpm="mpv --loop-playlist=inf --video=no" + +alias v="$EDITOR" +alias g=git eval "$(zoxide init bash)" -- cgit v1.2.3-70-g09d2