diff options
Diffstat (limited to 'shell/.config')
| -rw-r--r-- | shell/.config/shell/aliasrc | 34 | ||||
| -rw-r--r-- | shell/.config/shell/profile | 41 |
2 files changed, 75 insertions, 0 deletions
diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc new file mode 100644 index 0000000..8d8d1da --- /dev/null +++ b/shell/.config/shell/aliasrc @@ -0,0 +1,34 @@ +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + mkd="mkdir -pv" \ + yt="youtube-dl --add-metadata -i" \ + yta="yt -x -f bestaudio/best" \ + ffmpeg="ffmpeg -hide_banner" \ + nnn="nnn -de" + +# Colorize commands when possible. +alias \ + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ccat="highlight --out-format=ansi" + + +alias \ + yt="youtube-dl --add-metadata -ic" \ + yta="youtube-dl --add-metadata -xic" \ + ka="killall" \ + g="git" \ + f="$FILE" \ + ssd="systemctl shutdown" \ + ssp="systemctl suspend" \ + e="$EDITOR" \ + v="$EDITOR" \ + a="sudo apt" \ + z="zathura" \ + mpv60="mpv --input-ipc-server=/tmp/mpvsocket --hwdec=auto-copy" diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile new file mode 100644 index 0000000..a86e017 --- /dev/null +++ b/shell/.config/shell/profile @@ -0,0 +1,41 @@ +#!/bin/zsh + +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. +# see /usr/share/doc/bash/examples/startup-files for examples. +# the files are located in the bash-doc package. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +#umask 022 + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +# Adds `~/.local/bin` to $PATH +export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')" + +export EDITOR="nvim" +export TERMINAL="st" +export BROWSER="firefox" +export READER="zathura" + +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" + +export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0" +export LESSHISTFILE="-" +export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh" +export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg" +export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default" +export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history" + +export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. +export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads |
