diff options
Diffstat (limited to '.config/shell')
-rw-r--r-- | .config/shell/aliasrc | 12 | ||||
-rw-r--r-- | .config/shell/bm-dirs | 3 | ||||
-rw-r--r-- | .config/shell/bm-files | 1 | ||||
-rw-r--r-- | .config/shell/profile | 8 |
4 files changed, 15 insertions, 9 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index e60a16b..55f3cb6 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -8,22 +8,23 @@ alias md='mkdir' alias s='sudo' alias l='ls -A' alias ll='ls -al' +alias lr='ls -aR' # open alias o='${OPENER:-xdg-open}' alias e='${EDITOR:-vi}' alias se='sudoedit' alias lf='lfcd' alias rs='exec $SHELL' -alias sr='e "$(ff -L ~/.config ~/.local/bin ~/bin)"' +alias sr='ff ~/.config ~/.local/bin ~/bin' alias fh='fzf --tac < "${XDG_DATA_HOME:-$HOME/.local/share}/openhist"' alias uc='cd ~ && gitpush' +alias gpu='gitpush' -lt() { tree -aC "$@" | less -rF; } +lt() { tree -aC --dirsfirst -I "$IGNORE_GLOB" "$@" | less -F; } dul() { du -ahd 1 "$@" | sort -h | less -FX; } v() { LESSOPEN="|preview %s" less -r -F "${1:-.}"; } -ff() { find "$@" ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \) | - FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $fo" fzf -m; } +ff() { FZF_DEFAULT_COMMAND="$FZF_DEFAULT_COMMAND $@" FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $FO" fzf -m; } senv() { source "${XDG_DATA_HOME:-$HOME/.local/share}/virtualenvs/${1:-main}/bin/activate"; } sudoedit() { @@ -81,6 +82,7 @@ alias wget='wget -c' alias fzf='fzf --ansi' alias diff='diff --color=auto' alias grep='grep --color=auto' -alias tree='tree -C' +alias tree='tree -C --dirsfirst' alias ls='ls -h --group-directories-first --color=auto --classify=auto' alias info='info --vi-keys --init-file ~/.config/infokey' +alias fd='fd --hidden' diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index 93476eb..5338c77 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -39,7 +39,7 @@ pw ~/Phone/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp\ Documents mn /mnt stg ${STORAGE:-/mnt/storage} -lr ${STORAGE:-/mnt/storage}/Library +lbr ${STORAGE:-/mnt/storage}/Library med ${STORAGE:-/mnt/storage}/Media sts ${STORAGE:-/mnt/storage}/sites sd /sdcard @@ -49,3 +49,4 @@ usr ${PREFIX:-/usr} ush /usr/share usd /usr/share/doc usha /usr/share/applications +tmu /tmp/mozilla_${USER}0 diff --git a/.config/shell/bm-files b/.config/shell/bm-files index 46723a5..442b116 100644 --- a/.config/shell/bm-files +++ b/.config/shell/bm-files @@ -20,6 +20,7 @@ ac ${XDG_CONFIG_HOME:-$HOME/.config}/alacritty/alacritty.toml xr ${XDG_CONFIG_HOME:-$HOME/.config}/X11/Xresources xi ${XDG_CONFIG_HOME:-$HOME/.config}/X11/xinitrc mm ${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list +fdi ${XDG_CONFIG_HOME:-$HOME/.config}/fd/ignore ssc ~/.ssh/config csh ~/Dev/csstudent41.github.io/layouts/_default/home.html qn ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/Notes/QuickNote.md diff --git a/.config/shell/profile b/.config/shell/profile index 46bbb9b..c8fd9c6 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -37,9 +37,12 @@ export R_ENVIRON_USER="$XDG_DATA_HOME/R/.Renviron" export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock" export GOPATH="$XDG_DATA_HOME/go" export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history" +export NODE_REPL_HISTOR="$XDG_DATA_HOME/node_repl_history" +export MYSQL_HISTFILE="$XDG_DATA_HOME/mysql_history" +export HISTFILE="$XDG_DATA_HOME/bash_history" # program configuration -export LESS='-Rf --mouse --use-color -Dd+r$Du+b$' +export LESS='-fiR --mouse --use-color -j 10 -Dd+r -Du+b' export LESSOPEN='|lessopen.sh %s' export GROFF_NO_SGR=1 export GTK_IM_MODULE='fcitx' @@ -51,7 +54,7 @@ export QT_FONT_DPI=112 export SDCV_PAGER='less -R --quit-if-one-screen' export HTTP_HOME='https://www.duckduckgo.com' export CHROME_EXECUTABLE='chromium' -export FZF_DEFAULT_COMMAND="find -H . ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \)" +export FZF_DEFAULT_COMMAND="find -H . ! -wholename '*.git*' ! \( -type d -printf '%p/\n' , ! -type d -print \)" export FZF_DEFAULT_OPTS=" --history='$XDG_DATA_HOME/fzf/history' --preview='\$PREVIEWER {}' --preview-window=hidden @@ -91,7 +94,6 @@ export FZF_DEFAULT_OPTS=" # export GTYPIST_OPTS="--color 3,0 --banner-colors 0,2,4,1" # green-yellow export GTYPIST_OPTS="--color 6,0 --banner-color 0,4,5,1" # blue-cyan - # # path # find -L ~/.local/share/gem/ruby/3.0.0/bin ~/.local/bin ~/bin \ # -type d ! -wholename '*/.st*' | |