-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases.sh
More file actions
53 lines (40 loc) · 1.18 KB
/
aliases.sh
File metadata and controls
53 lines (40 loc) · 1.18 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
# Self made aliases for zsh
alias gs='git status'
alias gsu='git submodule update --init --recursive'
alias gp='git pull'
alias gool='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset" --stat --date=short'
alias tm='tmux'
alias tm_layout='tmuxp load /home/user/path/to/file.yml -d'
follow () {
/home/user/scripts/follow.sh $@
}
search () {
/home/user/scripts/search.sh $@
}
alias dp='docker ps'
alias dcu='docker compose up -d'
alias c='cd /mnt/c/Users/user/Downloads'
alias cde='conda deactivate'
alias valias='vim /home/user/scripts/aliases.sh'
alias src='exec zsh'
alias dockerclean='docker image rm $(docker images | grep "<none>" | awk '{print $3}' | tr '\n' ' ' | awk -F'%' '{print $1}')'
compare() {
cmp --silent "$3/$1" "$3/$2" || echo "files are different"
}
lf() {
list=$(ls | grep $1)
echo $list
}
rlf() {
rm $(ls | grep $1 | tr '\n' ' ')
}
# Suffix Aliases
# This will launch the specified file type in vscode when typing their directory
alias -s txt=code
alias -s py=code
alias -s cpp=code
alias -s c=code
alias -s hpp=code
# alias -s sh=code
alias -s md=code
alias -s json=code