From 45fad8817dbb6b1cd2ab96b754a0d21c421a2f20 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 1 Feb 2023 10:43:23 +0200 Subject: Re-Add .shells --- .shells/alias.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ .shells/exports.sh | 15 +++++++++++++++ .shells/prompt.sh | 14 ++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 .shells/alias.sh create mode 100644 .shells/exports.sh create mode 100644 .shells/prompt.sh diff --git a/.shells/alias.sh b/.shells/alias.sh new file mode 100644 index 0000000..e1a3967 --- /dev/null +++ b/.shells/alias.sh @@ -0,0 +1,50 @@ + +alias ll='ls -l' +alias grep='grep --color=auto' +alias anki='QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" anki' + +alias vim='nvim' +alias vi='nvim' + +#git +alias config='/usr/bin/git --git-dir=$HOME/Developer/config/ --work-tree=$HOME' +alias ga='git add' +alias gaa='git add .' +alias gc='git commit -m' +alias gp='git push -u origin' +alias gpm='git push -u origin master' +alias gpd='git push -u origin developer' +alias gs='git status' +alias cpm='config push -u origin master' +alias ca='config add' +alias cs='config status' +alias cc='config commit -m' + +#pacman | yay +alias yeet='paru -Rsc' + +# weather +alias weather="curl wttr.in" + +alias ls='ls -la --color=auto' +alias sb='sudo systemctl start bluetooth' +alias mykeys='setxkbmap -option caps:escape' +alias logout='pkill -U $USER' +#alias neofetch='neofetch | lolcat' +alias b='bluetoothctl' +alias ba='bluetooth-autoconnect' +alias music='mocp' +alias yt="yt-dlp" +alias c="pavucontrol" +alias r="ranger" +alias klight="brightnessctl --device='tpacpi::kbd_backlight' set 1" +alias pip="pip3" + +alias clear="printf '\e[2J\e[H'" +##yarn +alias sweb='BROWSER="firefox" yarn start' + +##flatpaks +alias fanki='flatpak run net.ankiweb.Anki' + + diff --git a/.shells/exports.sh b/.shells/exports.sh new file mode 100644 index 0000000..cda78fd --- /dev/null +++ b/.shells/exports.sh @@ -0,0 +1,15 @@ +# Export 'SHELL' to child processes. Programs such as 'screen' +# honor it and otherwise use /bin/sh. +export SHELL +export PATH="$PATH:~/.local/share/flatpak/exports/bin/" + +if [[ $- != *i* ]] +then + # We are being invoked from a non-interactive shell. If this + # is an SSH session (as in "ssh host command"), source + # /etc/profile so we get PATH and other essential variables. + [[ -n "$SSH_CLIENT" ]] && source /etc/profile + + # Don't do anything else. + return +fi \ No newline at end of file diff --git a/.shells/prompt.sh b/.shells/prompt.sh new file mode 100644 index 0000000..d919457 --- /dev/null +++ b/.shells/prompt.sh @@ -0,0 +1,14 @@ + +# Pormpt + + + +# Adjust the prompt depending on whether we're in 'guix environment'. +# if [ -n "$GUIX_ENVIRONMENT" ] +# then +# PS1='\u@\h \w [env]\$ ' +# else +# PS1='\u@\h \w\$ ' +# fi + + -- cgit v1.2.3