new aliases
This commit is contained in:
parent
ebdda20aa0
commit
64abbaf98e
38
.bashrc
38
.bashrc
@ -382,6 +382,29 @@ 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:
|
||||
# . ~/.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 parus='paru -Sy ; paru -S'
|
||||
alias paruss='paru -Ss'
|
||||
@ -401,17 +427,23 @@ alias parur='paru -R'
|
||||
alias parurr='paru -Rs'
|
||||
alias parurl='sudo pacman -Syy'
|
||||
alias ps='pacseek'
|
||||
|
||||
# misc aliases
|
||||
alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing
|
||||
alias clip='xclip -sel clip'
|
||||
alias snano='sudo nano'
|
||||
alias pu='pdfunite'
|
||||
alias joplin='joplin-desktop'
|
||||
alias tda='todo.sh add'
|
||||
alias yt='yt-dlp'
|
||||
alias chrome='chromium'
|
||||
alias mvideos='/home/yuriy/Syncthing/Python/Tools/MergeVideoFilesTogether.py'
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user