Fixed problem with alias
This commit is contained in:
parent
116ff9a636
commit
f8820d8666
2 changed files with 7 additions and 10 deletions
|
@ -1,7 +1,6 @@
|
|||
# --------------------------------------------------
|
||||
# File and Directory Management
|
||||
# --------------------------------------------------
|
||||
alias del='mv -t ~/.local/share/Trash' # Safely move files to trash
|
||||
alias ..="cd .." # Go up one directory
|
||||
alias ...="cd ../.." # Go up two directories
|
||||
alias ....="cd ../../.." # Go up three directories
|
||||
|
@ -9,16 +8,15 @@ alias back="cd -" # Go back to the last directory
|
|||
alias la="ls -Ah" # List all except . and .., human-readable sizes
|
||||
alias lsd="ls -d */" # List only directories
|
||||
alias lt="ls -ltr" # List by modification time, oldest first
|
||||
alias ls="ls --color=auto"
|
||||
alias ls="ls --color=auto" # Colored output for ls
|
||||
|
||||
# --------------------------------------------------
|
||||
# Package Management (Pacman + Paru)
|
||||
# --------------------------------------------------
|
||||
alias update="paru -Syyu --noconfirm" # Update system packages
|
||||
alias search="paru -Ss" # Search in repositories
|
||||
alias local="paru -Q" # List installed packages
|
||||
alias orphan="paru -Qdt" # List orphaned packages
|
||||
alias cleanup="paru -Rns $(paru -Qtdq) && paru -Sc" # Clean orphaned and cached packages
|
||||
#alias update="paru -Syyu --noconfirm" # Update system packages
|
||||
#alias search="paru -Ss" # Search in repositories
|
||||
#alias local="paru -Q" # List installed packages
|
||||
#alias orphan="paru -Qdt" # List orphaned packages
|
||||
|
||||
# --------------------------------------------------
|
||||
# Git Shortcuts
|
||||
|
@ -41,7 +39,6 @@ alias myip="curl ifconfig.me" # Display public IP address
|
|||
alias netstat="ss -tuln" # Show active network connections
|
||||
alias ping="ping -c 5" # Ping with 5 packets
|
||||
alias hosts="sudo $EDITOR /etc/hosts" # Edit hosts file
|
||||
alias flushdns="sudo systemctl restart systemd-resolved" # Flush DNS cache (systemd-resolved)
|
||||
|
||||
# --------------------------------------------------
|
||||
# System Monitoring & Management
|
||||
|
@ -77,7 +74,6 @@ alias watch="watch -n 1" # Repeat command every second
|
|||
# --------------------------------------------------
|
||||
alias cls="clear" # Clear terminal screen
|
||||
alias now="date +'%Y-%m-%d %H:%M:%S'" # Display current date and time
|
||||
alias timer="echo 'Timer started. Stop with Ctrl+C.' && date +%s && while true; do sleep 1; done" # Timer
|
||||
alias cwd="pwd | xclip -sel clip" # Copy current directory to clipboard
|
||||
alias please="sudo" # Fun alias for sudo
|
||||
alias s="sudo" # Short sudo
|
||||
|
@ -90,3 +86,4 @@ alias lenny='echo "( ͡° ͜ʖ ͡°)"' # Print lenny face
|
|||
alias flip="echo '(╯°□°)╯︵ ┻━┻'" # Print table flip
|
||||
alias unflip="echo '┬─┬ ノ( ゜-゜ノ)'" # Print unflip
|
||||
alias coffee="echo 'Starting coffee brewing process... ☕️'" # Start coffee process
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ source /usr/share/parchlinux/zsh/functions/fireworks.zsh
|
|||
source /usr/share/parchlinux/zsh/functions/genpass.zsh
|
||||
source /usr/share/parchlinux/zsh/functions/typewriter.zsh
|
||||
source /usr/share/parchlinux/zsh/functions/weather.zsh
|
||||
|
||||
source /usr/share/parchlinux/zsh/functions/saferm.zsh
|
||||
|
||||
source /usr/lib/spaceship-prompt/spaceship.zsh
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue