From bb3cd3d72e51e3aea5db3ba6404ced9320ffd440 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 19 Apr 2022 17:54:41 +0700 Subject: [PATCH] add zsh_aliases --- .zsh_aliases | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .zsh_aliases diff --git a/.zsh_aliases b/.zsh_aliases new file mode 100644 index 0000000..6b05cb3 --- /dev/null +++ b/.zsh_aliases @@ -0,0 +1,42 @@ +# basic shell aliases + + # helper +alias c='clear' +alias copy='xclip -i -selection "clipboard"' +alias df='df -h | grep -vE "tmpfs|loop|udev|docker"' +alias du='du -h --max-depth=1' +alias grep='grep --color=auto' +alias h='htop' +alias iftop='sudo iftop' +alias iotop='sudo iotop -oP' +alias ip='ip -c' +alias locate='locate -Aei' +alias ls='ls -lh --color=auto --group-directories-first' +alias lsa='ls -lhA' +alias lsblk='lsblk --output name,size,fstype,label,mountpoint' +alias lt='systemctl list-timers' +alias mount='sudo mount -a' +alias network='sudo systemctl restart NetworkManager.service' +alias p='ipython' +alias pingg="ping www.google.com -c 5" +alias r='ranger' +alias sr='screen -r' +alias trash-list="trash-list | sort | less" +alias tree="tree -C" +alias wget='wget -c' +alias x='exit' + + # cd +alias cde="cd /etc/ && pwd" +alias cdu="cd /etc/systemd/system/ && pwd && ls" +alias cdm="cd /mnt/ && pwd && ls" + + # tmux +alias t="tmux" +alias tl="tmux list-sessions" +alias ta="tmux attach" + + # git +alias ggraph="git log --all --decorate --oneline --graph" +alias gpretty='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"' +alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'