-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesystem.bash
36 lines (24 loc) · 922 Bytes
/
filesystem.bash
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
#!/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 .."
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"'