diff options
Diffstat (limited to '.shells')
-rw-r--r-- | .shells/alias.sh | 43 | ||||
-rw-r--r-- | .shells/exports.sh | 20 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.shells/alias.sh b/.shells/alias.sh new file mode 100644 index 0000000..1730d5f --- /dev/null +++ b/.shells/alias.sh @@ -0,0 +1,43 @@ +alias grep='grep --color=auto' +alias anki='QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" anki' + +alias vim='nvim' +alias vi='nvim' + +#git +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' +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 ytd="yt-dlp" +alias c="pavucontrol" +alias r="ranger" +alias klight="brightnessctl --device='tpacpi::kbd_backlight' set 1" + +##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..3e3d03f --- /dev/null +++ b/.shells/exports.sh @@ -0,0 +1,20 @@ +# Export 'SHELL' to child processes. Programs such as 'screen' +# honor it and otherwise use /bin/sh. +export SHELL +export PATH +export PATH=/home/$USER/.local/bin:$PATH +export EDITOR="emacsclient" +export GIT_EDITOR="emacsclient" +export SBCL_HOME="/usr/lib/sbcl/" +export PATH=$PATH:~/.roswell/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 |