.bash_aliases 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ## Modified commands
  2. alias s="screen"
  3. alias ll='ls -alF'
  4. alias la='ls -A'
  5. alias l='ls -CF'
  6. alias l='ls -CF'
  7. alias ls='ls -p --color=auto'
  8. alias grep='grep --color=auto'
  9. function cdl { cd $1; ls;}
  10. #alias ssh="~/.scripts/ssh/ssh-ident"
  11. # Enable color support of ls and also add handy aliases
  12. if [ -x /usr/bin/dircolors ]; then
  13. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  14. alias ls='ls --color=auto'
  15. alias dir='dir --color=auto'
  16. alias vdir='vdir --color=auto'
  17. alias grep='grep --color=auto'
  18. alias fgrep='fgrep --color=auto'
  19. alias egrep='egrep --color=auto'
  20. fi
  21. # Utility commands
  22. alias mpc="ncmpcpp"
  23. alias emc="em -nw"
  24. alias mu4e="em -c -n --eval '(mu4e)'"
  25. alias apagar="sudo shutdown -h 14:20"
  26. alias acortar='curl -s "http://is.gd/create.php?format=simple&url=`xsel -po`" | xsel -pi'
  27. alias bajar="plowdown"
  28. alias subir="plowup"
  29. alias search-word="find . -type f -print0 | xargs -0 grep -l $1"
  30. alias jpg-optimized="find . -name *.jpg -exec jpegoptim --max=80 -t '$i' {} \;"
  31. alias prime-enable="export DRI_PRIME=1"
  32. alias prime-disable="export DRI_PRIME=0"
  33. alias webcam="webcam_mods bg-blur"
  34. # Custom ~/.scripts commands
  35. alias pass="$HOME/.scripts/pass-utils/passp"
  36. alias pomf="$HOME/.scripts/pomf.py"
  37. alias pomf-w="$HOME/.scripts/scrotpomf.sh"
  38. alias capas2png="$HOME/.scripts/Inkscape/layers2pngs.py"
  39. alias tvgnu="$HOME/.scripts/TVenGNU.sh"
  40. alias hastebin="$HOME/.scripts/haste.sh"
  41. alias haste="HASTE_SERVER=http://vte.distopico.info haste"
  42. alias davpush="$HOME/.scripts/davpush.pl"
  43. # Virtualenv
  44. vePath="$HOME/.virtualenv/bin"
  45. alias lstream="${vePath}/livestreamer-curses"
  46. # Alias directories
  47. alias home="cd $HOME/"
  48. alias musica="cd $HOME/Music"
  49. alias descargas="cd $HOME/Downloads"
  50. alias escritorio="cd $HOME/Desktop"
  51. alias publico="cd $HOME/Public"
  52. alias videos="cd $HOME/Videos"
  53. alias imagenes="cd $HOME/Pictures"
  54. # Update Grub2 Parabola
  55. alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
  56. # Pkg manager
  57. alias repo="sudo add-apt-repository $1"
  58. alias build-dep="sudo apt-get build-dep $1"
  59. alias update-full="sudo aptitude full-upgrade -y && sudo aptitude clean"
  60. alias search-app="sudo aptitude search"
  61. alias dist-upgrade="sudo apt-get dist-upgrade"
  62. # Guix alias
  63. alias guix-reconfigure="sudo guix system reconfigure /etc/config.scm; sudo update-boot"
  64. # Fix some paths until I migrate to guix/nix shells workflow
  65. _LIBRARY_PATH=/lib:/run/current-system/profile/lib:$HOME/.guix-profile/lib:/gnu/store/gmv6n5vy5qcsn71pkapg2hnknyn1p7g3-gcc-12.3.0-lib/lib:$LIBRARY_PATH
  66. _LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$_LIBRARY_PATH
  67. alias node="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH node $@"
  68. alias npx="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH npx $@"
  69. alias npm="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH npm $@"
  70. alias pnpm="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH pnpm $@"
  71. # Fix xmonad --recompile that doesn't found their onw libs
  72. GHC_VERSION=9.2.5
  73. XMONAD_VERSION=0.17.1
  74. _GHC_PACKAGE_PATH=$GHC_PACKAGE_PATH:/run/current-system/profile/lib/ghc-$GHC_VERSION/xmonad-$XMONAD_VERSION.conf.d:/run/current-system/profile/lib/ghc-$GHC_VERSION/package.conf.d:/run/current-system/profile/lib/ghc-$GHC_VERSION/ghc-xmonad-contrib-$XMONAD_VERSION.conf.d
  75. # alias xmonad="GHC_PACKAGE_PATH=$_GHC_PACKAGE_PATH LD_LIBRARY_PATH=$_LD_LIBRARY_PATH xmonad $@"
  76. # alias xmobar="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH xmobar $@"
  77. # alias ghcup="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH ghcup $@"
  78. # alias ghc="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH ghc $@"
  79. # alias ghc-pkg="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH ghc-pkg $@"
  80. # alias cabal="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH cabal $@"
  81. # alias haskell-language-server-wrapper="LD_LIBRARY_PATH=$_LD_LIBRARY_PATH haskell-language-server-wrapper $@"