-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilesystem.bash
More file actions
48 lines (33 loc) · 1.15 KB
/
filesystem.bash
File metadata and controls
48 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Set defaults if not set above
[[ $(aliasExists ".dl") -eq 0 ]] && alias .dl='cd "$HOME/Downloads"'
[[ $(aliasExists ".ssh") -eq 0 ]] && alias .ssh='cd "$HOME/.ssh"'
[[ $(aliasExists ".logs") -eq 0 ]] && alias .logs='cd "$HOME/.logs"'
[[ $(aliasExists ".terminal") -eq 0 ]] && alias .terminal='cd "$HOME/.terminal"'
[[ $(aliasExists ".t") -eq 0 ]] && alias .t='cd "$HOME/.terminal"'
[[ $(aliasExists ".") -eq 0 ]] && alias .='cd "$HOME"'
[[ $(aliasExists "..") -eq 0 ]] && alias ..="cd .."
if [[ $ENV_PROFILE == "Linux" ]]; then
alias .disken="cd /mnt/disken"
fi
alias .tmp='cd "$HOME/.tmp"'
alias .logs='cd "$HOME/.logs"'
alias -- -="cd -"
mkcd() {
mkdir -p "$@" && cd "$_" || return
}
alias rm="rm -rf"
alias ls="exa -la --icons --group-directories-first --color=always"
alias l=ls
alias lt="ls -T"
alias cat="bat"
alias find="find . -name"
alias untar="tar -xvzf"
alias dirsize="du -hs"
alias .ghostty='cd "$HOME/Library/Application Support/com.mitchellh.ghostty"'
alias space="du -d1 -h 2>/dev/null | sort -h"
if [[ $ENV_PROFILE == "Linux" ]]; then
alias diskspace='df -h -x squashfs -x tmpfs -x devtmpfs'
else
alias diskspace="df -h /"
fi