mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-04-28 13:02:27 +00:00
Merge branch 'master' into Python
This commit is contained in:
commit
a8f048448f
2 changed files with 7 additions and 3 deletions
|
@ -43,9 +43,10 @@ alias py2='python2'
|
||||||
alias cfvim='vim ~/.vimrc'
|
alias cfvim='vim ~/.vimrc'
|
||||||
alias cfzsh='vim ~/.config/zsh/.zsh_config'
|
alias cfzsh='vim ~/.config/zsh/.zsh_config'
|
||||||
alias cfzshrc='vim ~/.zshrc'
|
alias cfzshrc='vim ~/.zshrc'
|
||||||
|
alias cfalias='vim ~/.config/sh/.aliases'
|
||||||
|
|
||||||
# Replacements
|
# Replacements
|
||||||
alias dd='dcfldd' # Use dcfldd instead of dd (shows progress)
|
alias dd='dcfldd' # Use dcfldd instead of dd (shows progress) (pacman -S dcfldd)
|
||||||
alias du='du -ach | sort -h' # Sort du by size
|
alias du='du -ach | sort -h' # Sort du by size
|
||||||
alias mkdir='mkdir -p' # Mkdir with automatic creation of parent directories
|
alias mkdir='mkdir -p' # Mkdir with automatic creation of parent directories
|
||||||
alias ps='ps auxf' # Print all processes
|
alias ps='ps auxf' # Print all processes
|
||||||
|
@ -68,7 +69,6 @@ alias dotdirs='exa -hulaD -d .[a-z]*' # Show all dotdirs
|
||||||
alias dotall='exa -hula -d .[a-z]*' # Show both dotdirs and dotfiles
|
alias dotall='exa -hula -d .[a-z]*' # Show both dotdirs and dotfiles
|
||||||
alias clean='rm -rf ~/.local/share/Trash/* && rm -rf ~/Downloads/*' # Remove trash and downloads files
|
alias clean='rm -rf ~/.local/share/Trash/* && rm -rf ~/Downloads/*' # Remove trash and downloads files
|
||||||
alias colors-256='curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash' # Show color table
|
alias colors-256='curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash' # Show color table
|
||||||
alias minecraft='minecraft-launcher'
|
|
||||||
alias o='dolphin .' # open in dolphin (file manager)
|
alias o='dolphin .' # open in dolphin (file manager)
|
||||||
alias pacman-extract='pacman -Syw --cachedir .' # Extract package/es into current floders
|
alias pacman-extract='pacman -Syw --cachedir .' # Extract package/es into current floders
|
||||||
alias mount-table='df' # Show list of all mounted devices and their mount locations
|
alias mount-table='df' # Show list of all mounted devices and their mount locations
|
||||||
|
@ -76,6 +76,9 @@ alias swapout='sudo swapoff -a; sudo swapon -a' # Reset swap (move everything to
|
||||||
alias sound_control='alsamixer' # Sound control tool in alsa_utils package
|
alias sound_control='alsamixer' # Sound control tool in alsa_utils package
|
||||||
alias md-to-pdf='pandoc -s -o' # Convert markdown to pdf
|
alias md-to-pdf='pandoc -s -o' # Convert markdown to pdf
|
||||||
alias pdf-reader='mupdf' # Open pdf file
|
alias pdf-reader='mupdf' # Open pdf file
|
||||||
|
alias pacman-delete-orphans='pacman -Rns $(pacman -Qtdq)' # Remove orphaned packages (oackages which are no longer required)
|
||||||
|
alias open-ports='lsof -i' # Show open ports
|
||||||
|
|
||||||
|
|
||||||
# If user is not root, pass all commands via sudo
|
# If user is not root, pass all commands via sudo
|
||||||
if [ $UID -ne 0 ]; then
|
if [ $UID -ne 0 ]; then
|
||||||
|
@ -83,7 +86,7 @@ if [ $UID -ne 0 ]; then
|
||||||
|
|
||||||
## Uncomment if you are using autocompletion (is ZSH)
|
## Uncomment if you are using autocompletion (is ZSH)
|
||||||
#alias sudo='nocorrect sudo'
|
#alias sudo='nocorrect sudo'
|
||||||
## Comment this if you are not using autocompletion (in ZSH)
|
## Comment this if you are using autocompletion (in ZSH)
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
|
||||||
alias unsudo='sudo -k' # Reset sudo timeout (sudo will require password)
|
alias unsudo='sudo -k' # Reset sudo timeout (sudo will require password)
|
||||||
|
|
|
@ -235,3 +235,4 @@ function update-git-repos() {
|
||||||
|
|
||||||
echo -e "\n\033[32mComplete!\033[0m\n"
|
echo -e "\n\033[32mComplete!\033[0m\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue