dotfiles

My dotfiles for Arch Linux
git clone git://git.janispagel.de/dotfiles.git
Log | Files | Refs | README

dot-zsh_aliases (2644B)


      1 ##############################
      2 # Defining aliases
      3 ##############################
      4 
      5 # configure dotfiles
      6 alias dot='git --git-dir=$HOME/dotfiles/.git --work-tree=$HOME/dotfiles'
      7 alias dots='dot status'
      8 alias dotcv='dot commit -S -v'
      9 alias dotcm='dot commit -S -m'
     10 alias dotc='dot commit -S'
     11 alias dota='dot add'
     12 alias dotps='dot push'
     13 alias dotpl='dot pull'
     14 alias dotl='dot log'
     15 alias dotd='dot diff'
     16 alias dotb='dot branch'
     17 alias dotch='dot checkout'
     18 alias dotsh='dot show'
     19 
     20 # sudo alias
     21 alias sudo='sudo -H'
     22 
     23 # Default opener
     24 alias o='xdg-open'
     25 
     26 # mupdf alias
     27 function __mupdf_start { mupdf 2>/dev/null "$1" & }
     28 alias mu='__mupdf_start'
     29 
     30 # evince alias
     31 function __evince_start { evince 2>/dev/null "$1" & }
     32 alias ev='__evince_start'
     33 
     34 # zathura alias
     35 function __zathura_start { zathura 2>/dev/null "$1" & }
     36 alias z="__zathura_start"
     37 
     38 # rm/cp/mv alias
     39 alias rm='rm -I'
     40 alias cp='cp -i'
     41 alias mv='mv -i'
     42 
     43 # emacs alias
     44 function __emacs_function { emacs -mm "$@" & }
     45 alias e='__emacs_function'
     46 alias enox='emacs -nw'
     47 
     48 alias tmux='tmux -2' # Force tmux to use 256 colors
     49 
     50 # some ls aliases
     51 alias ls='ls -hNF --color=auto --group-directories-first'
     52 alias ll='ls -al'
     53 alias la='ls -A'
     54 alias l='ls -lhav'
     55 
     56 # grep
     57 alias grep='grep --color=auto'
     58 
     59 # xfst alias
     60 alias xfst='~/tools/xfsm_api/linux64/bin/xfst'
     61 
     62 # lexc alias
     63 alias lexc='~/tools/xfsm_api/linux64/bin/lexc'
     64 
     65 # Clear screen
     66 alias c='clear && printf "\033c"'
     67 # screen clear alias that works for tmux too
     68 alias ct='clear && printf "\033c" && tmux clearhist'
     69 
     70 # startx
     71 alias x='startx'
     72 
     73 # aliases for tar
     74 alias targz='tar -czf'
     75 alias untargz='tar -xzf'
     76 alias tarxz='tar -cJf'
     77 alias untarxz='tar -xJf'
     78 alias tarbz2='tar -cjf'
     79 alias untarbz2='tar -xjf'
     80 
     81 # alias for suspending
     82 alias suspend='systemctl suspend'
     83 
     84 # alias for wifi hotspot
     85 alias hotspot='sudo sh ~/bin/start-hotspot.sh'
     86 
     87 # update mirror list
     88 alias updatemirrorlist='sudo reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist'
     89 
     90 # aliases for pacman
     91 alias aurpkgs-show='pacman -Qm'
     92 alias orphans-rm='sudo pacman -Rsn $(pacman -Qdtq)'
     93 alias pacu='sudo pacman -Syu'
     94 alias pacs='sudo pacman -S'
     95 alias pacr='sudo pacman -Rns'
     96 
     97 # git aliases
     98 alias gits='git status'
     99 alias gitcv='git commit -S -v'
    100 alias gitcm='git commit -S -m'
    101 alias gitc='git commit -S'
    102 alias gita='git add'
    103 alias gitps='git push'
    104 alias gitpl='git pull'
    105 alias gitl='git log'
    106 alias gitd='git diff'
    107 alias gitb='git branch'
    108 alias gitch='git checkout'
    109 alias gitsh='git show'
    110 
    111 alias settimezone='timedatectl set-timezone'
    112 
    113 alias tx='tmux'
    114 alias txa='tmux a'
    115 
    116 alias yt='mpsyt'
    117 
    118 alias mk='make'
    119 
    120 alias nb='newsboat'
    121 
    122 alias mpv='mpv --wid=$(xdotool getactivewindow)'