-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
executable file
·83 lines (66 loc) · 2.42 KB
/
bash_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
#!/bin/bash
alias rm='rm -I'
alias ls='ls --color'
alias v='nvim --listen /tmp/nvimsocket'
#alias vim='vim --servername vim'
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias neofetch='clear && neofetch'
alias rsync='rsync --progress'
alias vrc='nvim ~/.vimrc'
alias zshrc='nvim ~/.zshrc'
alias bashal='nvim ~/.bash_aliases'
alias zsrc='source ~/.zshrc'
alias bright='sudo nvim /sys/class/backlight/*/brightness'
alias herbst='nvim ~/.config/herbstluftwm/autostart'
alias midi='zmidimap ~/dotfiles/hlwm.mim'
alias xclip='xclip -selection clipboard'
alias bakkman='sudo pacman'
alias links='nvim ~/Phone-SD/Documents/markor/LinkBox.md'
alias tfn='nvim ~/Phone-SD/Documents/markor/tfn.md'
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
#Pfade
alias py='cd ~/Documents/Python/'
alias path_tex='cd ~/Documents/LaTeX'
alias pdf_lab='cd ~/Documents/Uni/Labor_Ex2/KFU'
alias tl='cd ~/Dropbox/LaTeX_Labor'
#rockstar transpiler
function rock() {
rockstar-py --output $1.py $1.rock
python3 $1.py
}
#Funktionen
function wetter() {
if [ $2 ]
then
curl wttr.in/$1
else
python3 ~/Documents/Python/wetter.py $1
fi
}
alias tb="nc termbin.com 9999"
#Aliases
alias pi-net='ssh pi@10.0.0.2'
alias red='setsid redshift -l 47.06:15.45'
alias elv-date='clear && elvish ~/Documents/date-test.elv'
alias pvpn='sudo protonvpn-cli'
alias pvpnQ='sudo protonvpn-cli -c AT#5'
alias conda_init='. ~/miniconda3/etc/profile.d/conda.sh && conda activate base'
alias jpy='jupyter-notebook ~/Documents/notebook'
alias jpy-uni='jupyter-notebook ~/Documents/Uni'
alias jpy-prot='jupyter-notebook ~/Dropbox/LaTeX_Labor'
alias bus='setsid zathura ~/Phone-SD/Documents/700_D_18_3.pdf'
alias pippin='pip3 install'
alias pi-songs='sshfs pi@raspi:/media/GITGUD /home/jkbr/Music/Pi && mpc update --wait'
#functions
function dotgit() {
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa_git
git add *
git commit -m 'updated some files'
git push origin master
}
hc() {
herbstclient "$@"
}
eval $(thefuck --alias)