Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.5 KiB

1 year ago
1 year ago
1 year ago
7 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #!/bin/sh
  2. # bash
  3. alias ":wq"="exit"
  4. alias ":q"="exit"
  5. # cd
  6. alias ".."="cd .."
  7. alias "..."="cd ../.."
  8. alias "...."="cd ../../.."
  9. alias "....."="cd ../../../.."
  10. # cp
  11. alias cp="cp -i"
  12. # clear
  13. alias c="clear"
  14. # config
  15. alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
  16. # fzf
  17. src() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;}
  18. srd() { find ~/ownCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;}
  19. # grep
  20. alias grep="grep --color=auto"
  21. # haste
  22. haste() {
  23. a=$(cat);
  24. curl -X POST -s -d "$a" https://paste.tiyn.eu/documents | awk -F '"' '{print "https://paste.tiyn.eu/"$4}';
  25. }
  26. #khal
  27. alias calendar="khal"
  28. # khard
  29. alias contacts="khard"
  30. # ls(d)
  31. alias l="lsd"
  32. alias la="lsd -la"
  33. alias ll="lsd -l"
  34. alias tree="lsd --tree"
  35. # mkdir
  36. alias mkdir="mkdir -p"
  37. # mount
  38. alias mount="mount |column -t"
  39. # mv
  40. alias mv="mv -i"
  41. # pacman
  42. alias pac="sudo pacman"
  43. # ping
  44. alias ping="ping -c 5"
  45. # rm
  46. alias rm="prompt 'Are you sure?' && rm"
  47. # root/sudo
  48. alias su="sudo -i"
  49. #sc-im
  50. alias sc="sc-im"
  51. # script
  52. alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
  53. # tmux
  54. alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
  55. # nvim
  56. alias svim="sudo nvim"
  57. alias svi="sudo nvim"
  58. command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
  59. command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
  60. # weather
  61. alias weather="curl wttr.in"
  62. #wget
  63. alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"