commit 51ad5a247d504a05595169e1eeefae699cfefed1
parent dbfe2993742c4f01d0a84511b8a619645111b547
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 18 Feb 2020 18:00:38 +0100
shell: various config
Former-commit-id: 475a27044062925b4885bdcc23789d4274b36a72
Diffstat:
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dot.map b/dot.map
@@ -44,7 +44,7 @@ emacs:
shell:
- aliases: ~/.aliases
- functions: ~/.functions
-- zprofile: ~/.zprofile
+- zshenv: ~/.zshenv
- zshrc: ~/.zshrc
- bash_profile: ~/.bash_profile
- bashrc: ~/.bashrc
diff --git a/shell/aliases b/shell/aliases
@@ -13,5 +13,7 @@ alias jobs="jobs -l"
alias htop='sudo htop' # Run htop as root by default
alias g='git' # Make git easier to type
alias wheredef='type -a' # Where is a function defined?
+alias j='joplin'
alias tree="tree -CAFa -I 'CVS|*.*.package|.svn|.git|node_modules' --dirsfirst" # Colorize, ANSI graphics hack, indicate ft with appendices, print all files, ignore certain patterns, list dirs first
alias lsblk="lsblk -o NAME,LABEL,PARTLABEL,TYPE,FSTYPE,SIZE,MOUNTPOINT,STATE" # The columns I want to see in lsblk
+alias confucius="curl confucius-quote.herokuapp.com" # A joke curl service I made
diff --git a/shell/profile b/shell/profile
@@ -4,9 +4,14 @@
# 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
+# System-wide .profile for sh(1)
+if [ -x /usr/libexec/path_helper ]; then
+ eval `/usr/libexec/path_helper -s`
+fi
+
+if [ "${BASH-no}" != "no" ]; then
+ [ -r /etc/bashrc ] && . /etc/bashrc
+fi
# if running bash
if [ -n "$BASH_VERSION" ]; then
@@ -21,7 +26,6 @@ if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
-# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
diff --git a/shell/zprofile b/shell/zshenv