-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.shell_aliases
88 lines (69 loc) · 3.71 KB
/
.shell_aliases
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# ~/.shell_aliases: sourced by default shell
## ALIASES FOR ALL HOSTS ##########################################
alias black=' xset dpms force off;xset dpms force off;xset dpms force off' # Black screen
alias catc=' pygmentize -g'
alias catcl=' pygmentize -g -O style=colorful,linenos=1'
alias l=' ls -CF'
alias ls=' ls --time-style=long-iso ' # show hidden files
alias la=' ls --time-style=long-iso -Al' # show hidden files
alias lc=' ls --time-style=long-iso -ltcr' # sort by and show change time, most recent last
alias lk=' ls --time-style=long-iso -lSr' # sort by size, biggest last
alias ll=" ls --time-style=long-iso -l --group-directories-first"
alias ls=' ls --time-style=long-iso -hF --color' # add colors for filetype recognition
alias lt=' ls --time-style=long-iso -ltr' # sort by date, most recent last
alias lu=' ls --time-style=long-iso -ltur' # sort by and show access time, most recent last
alias lx=' ls --time-style=long-iso -lXB' # sort by extension
alias tree=' tree -Csu' # nice alternative to 'recursive ls'
alias weather='curl wttr.in' # weather for current location
alias head=' head -n 20'
alias rr=' ranger'
alias τρανσ=' trans'
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=/'
## Replace some existing commands
# if [ -x "$(command -v zoxide)" ]; then
# alias cd='z'
# fi
alias info='pinfo'
alias cd='z'
# ## set aliases if program exists
# alias_if lf lf-ueberzug >/dev/null
# alias_if rm trash >/dev/null
alias lf='~/.config/lf/lf-ueberzug/lf-ueberzug'
alias rm='trash'
## hide terminal when gui
alias gthumb=' devour.sh gthumb'
alias mpv=' devour.sh mpv'
alias meld=' devour.sh meld'
alias zathura=' devour.sh zathura'
alias feh=' devour.sh feh'
# alias geany=' devour.sh geany'
alias goldencheetah=' devour.sh $HOME/PROGRAMS/GoldenCheetah_v3.6_x64.AppImage'
alias vnc_connect.sh='devour.sh vnc_connect.sh'
## call some commands with args
# alias borgmatic='borgmatic --config ~/.config/borgmatic'
# alias cal='cal -A 4 -B 4'
alias iftop=' LANG=C iftop'
# alias make=' make -f *[Mm]akefile'
alias mount=' mount | column -t'
alias music=' ssh -tt blue ./BASH/cmus.sh'
alias music_lyvi=' ssh -tt blue ./BASH/cmus_lyvi_nr.sh'
alias music_remote='ssh -tt blue ./BASH/cmus_remote.sh'
alias ports=' netstat -tulanp'
alias rsynci=' rsync --info=progress2,name0 '
# alias tasks='gtasks tasks -l Pending '
alias xargsln=' tr '\n' '\0' | xargs -0 '
alias stow=' stow -v '
# alias vim='nvim'
alias gcalcli=' gcalcli --calendar main --calendar Birthdays '
#alias rmlint="rmlint -c sh:cmd='trash-put "$1"'"
alias aptupdate='sudo apt update; sudo apt -y upgrade; sudo apt -y autoclean; sudo apt -y autoremove; sudo apt clean'
## mount and unmount remote disks
alias mntgridro='sshfs [email protected]:/mnt/ops/lap_ops /media/grid_ro -o IdentityFile=/home/athan/.ssh/lapmgA -o ro'
alias mntgrid='sshfs [email protected]:/mnt/ops/lap_ops /media/gridhome -o IdentityFile=/home/athan/.ssh/lapmgA'
alias mntgridhome='sshfs [email protected]:/mnt/scratch_a/users/n/natsisa /media/grid_home -o IdentityFile=/home/athan/.ssh/lapmgA'
alias umntgrid='fusermount -u /media/gridhome'
alias umntgridro='fusermount -u /media/grid_ro'
## JOSM profiles
alias josm_thanasis='java -Djosm.pref=$HOME/.config/JOSM -jar $HOME/PROGRAMS/josm-tested.jar'
alias josm_hgt2adsl='java -Djosm.pref=$HOME/.config/JOSM_hgt2dsl_gr -jar $HOME/PROGRAMS/josm-tested.jar'
# alias recoll='QT_STYLE_OVERRIDE=fusion recoll'