From 6d3f178375cdd36837ae0d5e3a4692989e070482 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 28 Mar 2022 20:44:42 +0100 Subject: [PATCH] move aliases --- .scripts/alias.sh => .zsh_aliases | 6 ++++-- .zshrc | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) rename .scripts/alias.sh => .zsh_aliases (88%) diff --git a/.scripts/alias.sh b/.zsh_aliases similarity index 88% rename from .scripts/alias.sh rename to .zsh_aliases index 2c04bed..de7a7f3 100644 --- a/.scripts/alias.sh +++ b/.zsh_aliases @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env zsh alias bops="ssh boptop" alias dots="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME" @@ -7,11 +7,13 @@ alias f=fff alias fr="dict -d eng-fra" alias key="$SCRIPTS/sshkey.sh" alias nf="neofetch" -alias p="ping archlinux.org" alias o=xdg-open +alias p="ping archlinux.org" +alias pub="curl ident.me; echo" alias r=ranger alias s="search" alias sv="sudo $EDITOR" +alias sx="startx" alias t="$SCRIPTS/term.sh &" alias td=todolist alias theme="$SCRIPTS/theme" diff --git a/.zshrc b/.zshrc index 30c3eca..e90ccdc 100644 --- a/.zshrc +++ b/.zshrc @@ -29,7 +29,10 @@ plugins=( source $ZSH/oh-my-zsh.sh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source "$SCRIPTS/alias.sh" +if [ -f ~/.zsh_aliases ]; then + . ~/.zsh_aliases +fi + source "$SCRIPTS/func.sh" # start ssh-agent automatically