diff options
author | xyz <gky44px1999@gmail.com> | 2021-07-19 12:07:32 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-07-19 12:07:32 -0700 |
commit | 8e85dae48638c659e15901638e2b1239e48954ff (patch) | |
tree | 07968d2ea4bde845b7999f2ea242107ab3dc6995 | |
parent | 14c592c84e34ae71a8d36c49aa4c3371fbe09054 (diff) |
alias, hotkey
-rw-r--r-- | .bash_profile | 12 | ||||
-rw-r--r-- | .bashrc | 20 | ||||
-rw-r--r-- | .config/newsboat/urls | 1 | ||||
-rw-r--r-- | .config/sxhkd/sxhkdrc | 3 |
4 files changed, 24 insertions, 12 deletions
diff --git a/.bash_profile b/.bash_profile index 024926f7..e45b6a32 100644 --- a/.bash_profile +++ b/.bash_profile @@ -21,17 +21,17 @@ export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" export QT_STYLE_OVERRIDE=kvantum export SDCV_PAGER="less --quit-if-one-screen -RX" -export FZF_DEFAULT_COMMAND="fd --no-ignore --hidden --exclude .git" -export FZF_CTRL_T_COMMAND="fd --absolute-path --no-ignore --hidden --exclude .git" -export FZF_ALT_C_COMMAND="fd --no-ignore --hidden --type d --exclude .git" -#export FZF_DEFAULT_COMMAND="sudo find . -path '*/\.git' -prune -o -print" +#export FZF_DEFAULT_COMMAND="fd --no-ignore --hidden --exclude .git" +#export FZF_CTRL_T_COMMAND="fd --absolute-path --no-ignore --hidden --exclude .git" +#export FZF_ALT_C_COMMAND="fd --no-ignore --hidden --type d --exclude .git" +export FZF_DEFAULT_COMMAND="sudo find . -path '*/\.git' -prune -o -print" # https://askubuntu.com/questions/444551/get-absolute-path-of-files-using-find-command # following two lines if use "" on the outermost, will not perfom expected, not sure why -#export FZF_CTRL_T_COMMAND='sudo find $PWD -path "*/\.git" -prune -o -print' +export FZF_CTRL_T_COMMAND='sudo find $PWD -path "*/\.git" -prune -o -print' #export FZF_CTRL_T_COMMAND='sudo find $(pwd) -path "*/\.git" -prune -o -print' # ~+ is bashism #export FZF_CTRL_T_COMMAND="sudo find ~+ -path '*/\.git' -prune -o -print" -#export FZF_ALT_C_COMMAND="sudo find . -path '*/\.git' -prune -o -type d -print" +export FZF_ALT_C_COMMAND="sudo find . -path '*/\.git' -prune -o -type d -print" # for clipmenu # set clipmenud to store clipboard only, don't store selection (primary) @@ -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)" diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 26e6a75c..5799e114 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -1 +1,2 @@ https://archlinux.org/feeds/news/ +http://keygenmusic.net/rss.php diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index e01a1dcc..de738ae8 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -6,3 +6,6 @@ XF86Audio{RaiseVolume,LowerVolume,Mute} alt + y mpvsel + +alt + w + firefox |