-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.csh_aliases
More file actions
33 lines (26 loc) · 1 KB
/
.csh_aliases
File metadata and controls
33 lines (26 loc) · 1 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
alias ls 'ls --color=auto'
alias lsa 'ls -lah'
alias grepi 'grep --color=auto'
alias usage 'du -csh ./* | sort -h; df . -kh --total'
alias psmem 'ps auxf | sort -nr -k 4 | head -10'
alias pscpu 'ps auxf | sort -nr -k 3 | head -10'
alias memuse 'ps -e -o pid,vsz,comm= | sort -n -k 2'
alias git_clean 'git branch | grep -v "master" | xargs git branch -D'
#alias update_bash 'cd ~/Projects/dotfiles; git pull; bash gen_symlinks.sh; cd ~; source ~/.bashrc'
#=========================================
# Some aliases used for specific systems
#=========================================
#----------------
# Unraid
#----------------
alias ipfail 'more /mnt/user/appdata/letsencrypt/log/fail2ban/fail2ban.log | grep "Ban"'
alias cdplex 'cd /mnt/user/appdata/plex'
alias cdhass 'cd /mnt/user/appdata/home-assistant'
#----------------
# Debian VM
#----------------
alias hass_dev 'cd ~/home-assistant; source venv/bin/activate'
#-----------------
# Work
#-----------------
alias rmlck 'find . -name "*.cdslck*" -exec rm "{}" \;'