-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_alias
More file actions
69 lines (57 loc) · 1.82 KB
/
.bash_alias
File metadata and controls
69 lines (57 loc) · 1.82 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
source ~/dotfiles/.functions/debug
source ~/dotfiles/.functions/file_management
source ~/dotfiles/.functions/hardware
source ~/dotfiles/.functions/investigation
source ~/dotfiles/.functions/media
source ~/dotfiles/.functions/networking
source ~/dotfiles/.functions/pranks
source ~/dotfiles/.functions/task_management
source ~/dotfiles/.functions/security
source ~/dotfiles/.functions/development
source ~/dotfiles/.functions/helpers
source ~/dotfiles/.functions/pretty
source ~/dotfiles/.functions/desktop_management
source ~/dotfiles/.functions/writing
############################################
## Misc
############################################
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# Shortcuts
alias dl="cd ~/Downloads"
alias abir="cd ~/Documents"
alias notes="cd ~/Documents/notes/"
alias g="git"
alias reload="source ~/.bash_profile"
alias _="sudo"
alias rr="rm -rf"
alias tree="tree -A"
alias treed="tree -d"
alias tree1="tree -d -L 1"
alias tree2="tree -d -L 2"
alias viperm="/tmp/malware/"
# terminal
alias c='clear'
# List all files colorized in long format
alias l="ls -lF ${colorflag}"
# List all files colorized in long format, excluding . and ..
alias la="ls -lAF ${colorflag}"
# List only directories
alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
# Always use color output for `ls`
alias ls="command ls ${colorflag}"
# Always enable colored `grep` output
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Enable aliases to be sudo’ed
alias sudo='sudo '
# Get week number
alias week='date +%V'