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.

79 lines
1.4 KiB

1 year ago
1 year ago
1 year 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. # hastebin
  22. haste() { a=$(cat); curl -X POST -s -d "$a" https://www.hastebin.martenkante.eu/documents | awk -F '"' '{print "https://www.hastebin.martenkante.eu/"$4}'; }
  23. # ls(d)
  24. alias l="lsd"
  25. alias la="lsd -la"
  26. alias ll="lsd -l"
  27. alias tree="lsd --tree"
  28. # mkdir
  29. alias mkdir="mkdir -p"
  30. # mount
  31. alias mount="mount |column -t"
  32. # mv
  33. alias mv="mv -i"
  34. # pacman
  35. alias pac="sudo pacman"
  36. # ping
  37. alias ping="ping -c 5"
  38. # rm
  39. alias rm="prompt 'Are you sure?' && rm"
  40. # root/sudo
  41. alias su="sudo -i"
  42. #sc-im
  43. alias sc="sc-im"
  44. # script
  45. alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
  46. # tmux
  47. alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
  48. # nvim
  49. alias svim="sudo nvim"
  50. alias svi="sudo nvim"
  51. command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
  52. command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
  53. # weather
  54. alias weather="curl wttr.in"
  55. #wget
  56. alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"