zsh: move aliases to .zsh/aliases.zsh

This commit is contained in:
surtur 2022-03-26 01:51:57 +01:00
parent 04a94c4705
commit 0d70260836
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 39 additions and 36 deletions

36
.zsh/aliases.zsh Normal file

@ -0,0 +1,36 @@
alias ls='exa -al --group --group-directories-first'
alias grubup='sudo grub2-mkconfig -o /boot/grub2/grub.cfg'
alias am='sudo -i'
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias free='free -m -l -t'
alias c='clear'
alias hs='history | grep -i'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias neofetch='neofetch --disable "theme" "icons" packages de hostname cpu gpu resolution title'
#alias reth='sudo ethtool -r enp0s25' # ; ip link set enp0s25 down; ip link set enp0s25 up '
#alias rwlan='ip link set wlp3s0 down; ip link set wlp3s0 up'
alias wget='wget -c' # allows to restore progress after interruption
alias vimrc='vim ~/.vimrc'
alias zshconfig="vim ~/.zshrc"
alias zshist="vim ~/.zsh_history"
alias alltheconfigs='alltheconfigs.sh'
alias agentssh="ssh-add ~/.ssh/$kee" # add development key on demand
alias rsync-copy='rsync -avz --progress -h'
alias rsync-move='rsync -avz --progress -h --remove-source-files'
alias rsync-synchronize='rsync -avzu --delete --progress -h'
alias rsync-update='rsync -avzu --progress -h'
alias tmpdir='nutmp=$(mktemp -d);cd "$nutmp";unset nutmp'
alias wolm='wol d4:3d:7e:53:c2:b1'
alias ta='tmux a -t0'
alias dc='docker-compose'
alias urlencode='python2 -c "import urllib, sys; print urllib.quote_plus( sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1], \"\")"'
alias urldecode='python2 -c "import urllib, sys; print urllib.unquote_plus(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"'
alias obs="QT_QPA_PLATFORM=xcb obs"
alias diff="diff -Naru --color"
alias ip='ip -color'
alias nmcs='nmcli conn show'
alias subvols='sudo btrfs subvolume list /home | grep -v -e ".snapshots" -e "${USER}/.local/share/containers" -e "${USER}/.docker" | grep ${USER}'

39
.zshrc

@ -122,42 +122,9 @@
SSH_KEY_PATH="$HOME/.ssh/$kee" SSH_KEY_PATH="$HOME/.ssh/$kee"
eval $(TERM=xterm-256color dircolors) eval $(TERM=xterm-256color dircolors)
alias ls='exa -al --group --group-directories-first'
alias grubup='sudo grub2-mkconfig -o /boot/grub2/grub.cfg' source ~/.zsh/aliases.zsh
alias am='sudo -i'
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias free='free -m -l -t'
alias c='clear'
alias hs='history | grep -i'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias neofetch='neofetch --disable "theme" "icons" packages de hostname cpu gpu resolution title'
#alias reth='sudo ethtool -r enp0s25' # ; ip link set enp0s25 down; ip link set enp0s25 up '
#alias rwlan='ip link set wlp3s0 down; ip link set wlp3s0 up'
alias wget='wget -c' # allows to restore progress after interruption
alias vimrc='vim ~/.vimrc'
alias zshconfig="vim ~/.zshrc"
alias zshist="vim ~/.zsh_history"
alias alltheconfigs='alltheconfigs.sh'
alias agentssh="ssh-add ~/.ssh/$kee" # add development key on demand
alias rsync-copy='rsync -avz --progress -h'
alias rsync-move='rsync -avz --progress -h --remove-source-files'
alias rsync-synchronize='rsync -avzu --delete --progress -h'
alias rsync-update='rsync -avzu --progress -h'
alias tmpdir='nutmp=$(mktemp -d);cd "$nutmp";unset nutmp'
alias wolm='wol d4:3d:7e:53:c2:b1'
alias ta='tmux a -t0'
alias dc='docker-compose'
alias urlencode='python2 -c "import urllib, sys; print urllib.quote_plus( sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1], \"\")"'
alias urldecode='python2 -c "import urllib, sys; print urllib.unquote_plus(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"'
alias obs="QT_QPA_PLATFORM=xcb obs"
alias diff="diff -Naru --color"
alias ip='ip -color'
alias nmcs='nmcli conn show'
alias subvols='sudo btrfs subvolume list /home | grep -v -e ".snapshots" -e "${USER}/.local/share/containers" -e "${USER}/.docker" | grep ${USER}'
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
if [ -z SSH_AGENT_PID ]; then if [ -z SSH_AGENT_PID ]; then