Skip to content

Instantly share code, notes, and snippets.

@scicco
Created February 20, 2018 14:55
Show Gist options
  • Save scicco/7b6010cc7ef54d4527e2bc1990489df5 to your computer and use it in GitHub Desktop.
Save scicco/7b6010cc7ef54d4527e2bc1990489df5 to your computer and use it in GitHub Desktop.
using alias when launching command from ssh -c
#found here: https://stackoverflow.com/a/22540192/1488217
# comment out the original line
# [ -z "$PS1" ] && return
if [ -z "$PS1" ]; then
shopt -s expand_aliases
# alias ls='ls --color=always'
# return
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment