mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-30 13:39:59 +02:00
Adds aliases for copy paste
This commit is contained in:
@ -75,7 +75,7 @@ alias lz='ls-archive'
|
|||||||
# Make directory, and cd into it
|
# Make directory, and cd into it
|
||||||
mkcd() {
|
mkcd() {
|
||||||
local dir="$*";
|
local dir="$*";
|
||||||
local mkdir -p "$dir" && cd "$dir";
|
mkdir -p "$dir" && cd "$dir";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Make dir and copy
|
# Make dir and copy
|
||||||
@ -154,26 +154,26 @@ alias memhog='ps -eo pid,ppid,cmd,%mem --sort=-%mem | head' # Processes consumin
|
|||||||
alias cpuhog='ps -eo pid,ppid,cmd,%cpu --sort=-%cpu | head' # Processes consuming most cpu
|
alias cpuhog='ps -eo pid,ppid,cmd,%cpu --sort=-%cpu | head' # Processes consuming most cpu
|
||||||
alias cpuinfo='lscpu' # Show CPU Info
|
alias cpuinfo='lscpu' # Show CPU Info
|
||||||
alias distro='cat /etc/*-release' # Show OS info
|
alias distro='cat /etc/*-release' # Show OS info
|
||||||
|
alias ports='netstat -tulanp' # Show open ports
|
||||||
# App Specific
|
|
||||||
if command_exists code ; then
|
|
||||||
alias vsc='code .' # Open VS Code in current dir
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Utilities
|
|
||||||
alias myip='curl icanhazip.com'
|
|
||||||
alias weather='curl wttr.in'
|
|
||||||
alias weather-short='curl "wttr.in?format=3"'
|
|
||||||
alias cheat='curl cheat.sh/'
|
|
||||||
alias tinyurl='curl -s "http://tinyurl.com/api-create.php?url='
|
|
||||||
alias ports='netstat -tulanp'
|
|
||||||
if command_exists cointop ; then; alias crypto='cointop'; fi
|
|
||||||
if command_exists gotop ; then; alias gto='gotop'; fi
|
|
||||||
|
|
||||||
# Copy / pasting
|
# Copy / pasting
|
||||||
alias cpwd='pwd | pbcopy' # Copy current path
|
alias cpwd='pwd | pbcopy' # Copy current path
|
||||||
alias pa='pbpaste' # Paste clipboard contents
|
alias pa='pbpaste' # Paste clipboard contents
|
||||||
|
|
||||||
|
# App Specific
|
||||||
|
if command_exists code ; then; alias vsc='code .'; fi # Launch VS Code in current dir
|
||||||
|
if command_exists cointop ; then; alias crypto='cointop'; fi
|
||||||
|
if command_exists gotop ; then; alias gto='gotop'; fi
|
||||||
|
|
||||||
|
# External Services
|
||||||
|
alias myip='curl icanhazip.com'
|
||||||
|
alias weather='curl wttr.in'
|
||||||
|
alias weather-short='curl "wttr.in?format=3"'
|
||||||
|
alias cheat='curl cheat.sh/'
|
||||||
|
alias tinyurl='curl -s "http://tinyurl.com/api-create.php?url='
|
||||||
|
alias joke='curl https://icanhazdadjoke.com'
|
||||||
|
alias hackernews='curl hkkr.in'
|
||||||
|
alias worldinternet='curl https://status.plaintext.sh/t'
|
||||||
|
|
||||||
# Random lolz
|
# Random lolz
|
||||||
alias cls='clear;ls' # Clear and ls
|
alias cls='clear;ls' # Clear and ls
|
||||||
|
Reference in New Issue
Block a user