some changes in .bashrc for new wayland setup
probably not important changes in .xinitrc and .xprofile - last before migrating to wayland
This commit is contained in:
22
.bashrc
22
.bashrc
@@ -138,6 +138,23 @@ gpg_decrypt () {
|
||||
gpg --decrypt --output ${output} "${1}" && echo "${1} -> ${output}"
|
||||
}
|
||||
|
||||
# for spawning new terminal instances in the current working directory in foot terminal
|
||||
osc7_cwd() {
|
||||
local strlen=${#PWD}
|
||||
local encoded=""
|
||||
local pos c o
|
||||
for (( pos=0; pos<strlen; pos++ )); do
|
||||
c=${PWD:$pos:1}
|
||||
case "$c" in
|
||||
[-/:_.!\'\(\)~[:alnum:]] ) o="${c}" ;;
|
||||
* ) printf -v o '%%%02X' "'${c}" ;;
|
||||
esac
|
||||
encoded+="${o}"
|
||||
done
|
||||
printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}"
|
||||
}
|
||||
PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }osc7_cwd
|
||||
|
||||
|
||||
# Aliases and Exports
|
||||
## utility
|
||||
@@ -164,7 +181,8 @@ alias lgfw="cd ~/git/fofrweb/"
|
||||
alias lbc="cd ~/git/fr/pedf/bc"
|
||||
|
||||
## programs
|
||||
alias r="ranger"
|
||||
#alias r="ranger"
|
||||
alias r="yazi"
|
||||
alias feh="feh --scale-down"
|
||||
#alias dragon="dragon-drop"
|
||||
alias xclip="xclip -selection c"
|
||||
@@ -174,7 +192,7 @@ alias speedtest="speedtest-cli"
|
||||
alias "cd.."="cd .."
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias tldr='tldr -t base16' # colors
|
||||
#alias tldr='tldr -t base16' # colors
|
||||
|
||||
## gpg encryption
|
||||
# verify signature for isos
|
||||
|
||||
Reference in New Issue
Block a user