Compare commits
2 Commits
e065f96481
...
63d96ece92
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63d96ece92 | ||
|
|
102080f10b |
5
apt.aliases
Normal file
5
apt.aliases
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Update and Upgrade the system
|
||||||
|
alias aptup='sudo apt update && sudo apt upgrade'
|
||||||
|
|
||||||
|
# Show Packages to update
|
||||||
|
alias aptavail='sudo apt update && sudo apt list --upgradable'
|
||||||
26
navigation.aliases
Normal file
26
navigation.aliases
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Go up directories
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../../../'
|
||||||
|
alias ....='cd ../../../../'
|
||||||
|
alias .....='cd ../../../../'
|
||||||
|
up () {
|
||||||
|
local d=""
|
||||||
|
local limit="$1"
|
||||||
|
|
||||||
|
# Default to limit of 1
|
||||||
|
if [ -z "$limit" ] || [ "$limit" -le 0 ]; then
|
||||||
|
limit=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for ((i=1;i<=limit;i++)); do
|
||||||
|
d="../$d"
|
||||||
|
done
|
||||||
|
|
||||||
|
# perform cd. Show error if cd fails
|
||||||
|
if ! cd "$d"; then
|
||||||
|
echo "Couldn't go up $limit dirs.";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Go to User Home Directory
|
||||||
|
alias home='cd ~'
|
||||||
Loading…
Reference in New Issue
Block a user