basic structure; zsh default; no desktop assumed
This commit is contained in:
26
shell/.config/shell/aliases
Normal file
26
shell/.config/shell/aliases
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Use neovim for vim if present.
|
||||
[ -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" \
|
||||
|
||||
# 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"
|
||||
|
||||
# These common commands are just too long! Abbreviate them.
|
||||
alias \
|
||||
ka="killall" \
|
||||
g="git" \
|
||||
f="$FILE" \
|
||||
e="$EDITOR" \
|
||||
v="$EDITOR" \
|
34
shell/.config/shell/exports
Normal file
34
shell/.config/shell/exports
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
# Default editor
|
||||
export EDITOR='vim'
|
||||
|
||||
# Shell history file
|
||||
export HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/shell/history"
|
||||
|
||||
# Global git config file
|
||||
export GIT_CONFIG_GLOBAL="${XDG_CONFIG_HOME:-$HOME/.config}/git/config"
|
||||
|
||||
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
|
||||
export PYTHONIOENCODING='UTF-8'
|
||||
|
||||
# Python commands in that file are executed before the first prompt is displayed in interactive mode.
|
||||
# The file is executed in the same namespace where interactive commands are executed
|
||||
# so that objects defined or imported in it can be used without qualification in the interactive session.
|
||||
export PYTHONSTARTUP="${XDG_CONFIG_HOME:-$HOME/.config}/python/startup"
|
||||
|
||||
# Custom Python history file
|
||||
export PYTHON_HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/python/history"
|
||||
|
||||
# PostgreSQL config file
|
||||
export PSQLRC="${XDG_CONFIG_HOME:-$HOME/.config}/psql/rc"
|
||||
|
||||
# Wget config file
|
||||
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/rc"
|
||||
|
||||
# ZSH directory
|
||||
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
1
shell/.config/shell/functions
Normal file
1
shell/.config/shell/functions
Normal file
@ -0,0 +1 @@
|
||||
#!/bin/sh
|
4
shell/.config/shell/path
Normal file
4
shell/.config/shell/path
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Adds `~/.local/bin` to $PATH
|
||||
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
9
shell/.config/shell/profile
Normal file
9
shell/.config/shell/profile
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Load the shell dotfiles, and then some:
|
||||
# * ~/.path can be used to extend `$PATH`.
|
||||
# * ~/.extra can be used for other settings you don’t want to commit.
|
||||
for file in ~/.config/shell/{path,exports,aliases,functions,extra}; do
|
||||
[ -r "$file" ] && [ -f "$file" ] && source "$file";
|
||||
done;
|
||||
unset file;
|
1
shell/.profile
Symbolic link
1
shell/.profile
Symbolic link
@ -0,0 +1 @@
|
||||
.config/shell/profile
|
Reference in New Issue
Block a user