new aliases

This commit is contained in:
yuriy 2024-01-20 16:09:11 -05:00
parent ebdda20aa0
commit 64abbaf98e

38
.bashrc
View File

@ -382,6 +382,29 @@ update() {
flatpak update flatpak update
} }
rkeymapper(){
sudo pkill keymapper
sudo systemctl restart keymapperd & keymapper &
echo "keymapper restarted successfully"
}
cdp(){
filepath=${1}
Directory="$(dirname "${filepath}")" # Get directory
FolderName="$(basename "${Directory}")" # Get folder name
FileNameWExt="$(basename "${filepath}")" # File Name wExtension
FileNameNoExt=${FileNameWExt%.*} # File name wOut Extension
FileExtension="${FileNameWExt##*.}" # File Extension
# echo "${FolderName}"
# echo ${FolderName}
cd ${Directory}
# echo ${1}
}
#------------------------------------------------------------ #------------------------------------------------------------
# to refresh terminal with new config: # to refresh terminal with new config:
# . ~/.bashrc # . ~/.bashrc
@ -392,8 +415,11 @@ update() {
################################################################################ ################################################################################
export PATH="$HOME/.local/bin:$PATH"
# pacman/paru aliases
# -------------------
alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing
# alias pacdiff=_Pacdiff # alias pacdiff=_Pacdiff
alias parus='paru -Sy ; paru -S' alias parus='paru -Sy ; paru -S'
alias paruss='paru -Ss' alias paruss='paru -Ss'
@ -401,17 +427,23 @@ alias parur='paru -R'
alias parurr='paru -Rs' alias parurr='paru -Rs'
alias parurl='sudo pacman -Syy' alias parurl='sudo pacman -Syy'
alias ps='pacseek' alias ps='pacseek'
# misc aliases
alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing
alias clip='xclip -sel clip' alias clip='xclip -sel clip'
alias snano='sudo nano' alias snano='sudo nano'
alias pu='pdfunite' alias pu='pdfunite'
alias joplin='joplin-desktop'
alias tda='todo.sh add' alias tda='todo.sh add'
alias yt='yt-dlp' alias yt='yt-dlp'
alias chrome='chromium' alias chrome='chromium'
alias mvideos='/home/yuriy/Syncthing/Python/Tools/MergeVideoFilesTogether.py' alias mvideos='/home/yuriy/Syncthing/Python/Tools/MergeVideoFilesTogether.py'
#alias everything=fo #alias everything=fo
export PATH="$HOME/.local/bin:$PATH" # boot/switch to CLI/GUI target
alias switchtocli="sudo systemctl isolate multi-user.target"
alias switchtogui="sudo systemctl isolate graphical.target"
alias bootcli="sudo systemctl set-default multi-user.target"
alias bootgui="sudo systemctl set-default graphical.target"
# Git Aliases # Git Aliases