suwako / farfetch アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
farfetch / src / user.c
268 B、11行 生 Blame 履歴
1#include "user.h"
2#include "common.h"
3
4const char *display_user_name() {
5 return run_command_s("whoami");
6}
7
8const char *display_user_host() {
9 return run_command_s("command -v hostname >/dev/null 2>&1 && hostname || "
10 "cat /etc/hostname");
11}